Редагувати

Поділитися через


ImportOptions.DataContractSurrogate Property

Definition

Gets or sets a data contract surrogate provider that can be used to modify the code generated during an import operation.

public:
 property System::Runtime::Serialization::ISerializationSurrogateProvider ^ DataContractSurrogate { System::Runtime::Serialization::ISerializationSurrogateProvider ^ get(); void set(System::Runtime::Serialization::ISerializationSurrogateProvider ^ value); };
public:
 property System::Runtime::Serialization::IDataContractSurrogate ^ DataContractSurrogate { System::Runtime::Serialization::IDataContractSurrogate ^ get(); void set(System::Runtime::Serialization::IDataContractSurrogate ^ value); };
public System.Runtime.Serialization.ISerializationSurrogateProvider? DataContractSurrogate { get; set; }
public System.Runtime.Serialization.IDataContractSurrogate DataContractSurrogate { get; set; }
member this.DataContractSurrogate : System.Runtime.Serialization.ISerializationSurrogateProvider with get, set
member this.DataContractSurrogate : System.Runtime.Serialization.IDataContractSurrogate with get, set
Public Property DataContractSurrogate As ISerializationSurrogateProvider
Public Property DataContractSurrogate As IDataContractSurrogate

Property Value

An implementation of the IDataContractSurrogate interface that handles schema import.

Remarks

The interface type for this option is ISerializationSurrogateProvider, but to take full advantage of the imported code modification abilities, using an ISerializationSurrogateProvider2ISerializationSurrogateProvider2 that also implements ISerializationCodeDomSurrogateProvider is recommended.

Applies to