System.Runtime.Remoting.SoapServices.PreLoad Method

Preloads every Type found in the specified System.Reflection.Assembly from the information found in the System.Runtime.Remoting.Metadata.SoapTypeAttribute associated with each type.

Syntax

public static void PreLoad (System.Reflection.Assembly assembly)

Parameters

assembly
The System.Reflection.Assembly for each type of which to call SoapServices.PreLoad(Type).

Remarks

When the .NET Framework is parsing an XML stream, it needs to know how to convert the XML read from the stream into common language runtime types. The information that specifies how the .NET Framework should generate and parse an XML stream is stored in custom attributes that are located in the System.Runtime.Remoting.Metadata namespace. There are two ways to specify this information in a configuration file: either by explicitly specifying the mappings, or by specifying which object types to preload. The custom attributes are read during the preloading process and the information in them is made available to the SOAP parser.

Requirements

Namespace: System.Runtime.Remoting
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0, 4.0.0.0