ImportOptions Class
Represents the options that can be set on an XsdDataContractImporter.
Assembly: System.Runtime.Serialization (in System.Runtime.Serialization.dll)
| Name | Description | |
|---|---|---|
![]() | ImportOptions() | Initializes a new instance of the ImportOptions class. |
| Name | Description | |
|---|---|---|
![]() | CodeProvider | Gets or sets a CodeDomProvider instance that provides the means to check whether particular options for a target language are supported. |
![]() | DataContractSurrogate | Gets or sets a data contract surrogate that can be used to modify the code generated during an import operation. |
![]() | EnableDataBinding | Gets or sets a value that specifies whether types in generated code should implement the INotifyPropertyChanged interface. |
![]() | GenerateInternal | Gets or sets a value that specifies whether generated code will be marked internal or public. |
![]() | GenerateSerializable | Gets or sets a value that specifies whether generated data contract classes will be marked with the SerializableAttribute attribute in addition to the DataContractAttribute attribute. |
![]() | ImportXmlType | Gets or sets a value that determines whether all XML schema types, even those that do not conform to a data contract schema, will be imported. |
![]() | Namespaces | Gets a dictionary that contains the mapping of data contract namespaces to the CLR namespaces that must be used to generate code during an import operation. |
![]() | ReferencedCollectionTypes | Gets a collection of types that represents data contract collections that should be referenced when generating code for collections, such as lists or dictionaries of items. |
![]() | ReferencedTypes | Gets a IList<T> containing types referenced in generated code. |
| Name | Description | |
|---|---|---|
![]() | Equals(Object^) | Determines whether the specified object is equal to the current object.(Inherited from Object.) |
![]() | Finalize() | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.(Inherited from Object.) |
![]() | GetHashCode() | Serves as the default hash function. (Inherited from Object.) |
![]() | GetType() | |
![]() | MemberwiseClone() | |
![]() | ToString() | Returns a string that represents the current object.(Inherited from Object.) |
The XsdDataContractImporter is used to generate code from XML schema using the .NET Framework CodeDOM. To generate an XML schema from an assembly, use the XsdDataContractExporter.
For more information about importing and exporting schemas, see Schema Import and Export and Importing Schema to Generate Classes.
The following example creates an instance of the ImportOptions class and sets the EnableDataBinding and GenerateInternal properties.
Available since 3.0
Any public static ( Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.


