Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
XmlSerializerImportOptions Class
Collapse the table of content
Expand the table of content

XmlSerializerImportOptions Class

Contains information needed to perform schema importation using the XmlSerializer and ServiceDescriptionImporter infrastructure.


Namespace:  System.ServiceModel.Channels
Assembly:  System.ServiceModel (in System.ServiceModel.dll)

public class XmlSerializerImportOptions

The XmlSerializerImportOptions type exposes the following members.

Public methodXmlSerializerImportOptions()Initializes a new instance of the XmlSerializerImportOptions class.
Public methodXmlSerializerImportOptions(CodeCompileUnit)Initializes a new instance of the XmlSerializerImportOptions class with the specified CodeCompileUnit.

Public propertyClrNamespaceGets or sets the ClrNamespace property that contains the types being mapped to the XML namespace.
Public propertyCodeCompileUnitGets the CodeCompileUnit object that provides a container for the CodeDOM program graph.
Public propertyCodeProviderGets or sets a CodeDomProvider object that checks whether particular options for a target language are supported.
Public propertyWebReferenceOptionsGets or sets the WebReferenceOptions object that contains the code generation options specified in the XML text file.

Public methodEquals(Object)Determines whether the specified object is equal to the current object. (Inherited from Object.)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public methodGetHashCodeServes as the default hash function. (Inherited from Object.)
Public methodGetTypeGets the Type of the current instance. (Inherited from Object.)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object. (Inherited from Object.)
Public methodToStringReturns a string that represents the current object. (Inherited from Object.)

The XmlSerializerImportOptions is used by the XmlSerializerMessageContractImporter. It is also used with the ServiceModel Metadata Utility Tool (Svcutil.exe) with the /useXmlSerializer (/uxs) switch.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
© 2015 Microsoft