Bagikan melalui


ImportOptions.DataContractSurrogate Properti

Definisi

Mendapatkan atau mengatur penyedia pengganti kontrak data yang dapat digunakan untuk memodifikasi kode yang dihasilkan selama operasi impor.

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

Nilai Properti

Implementasi antarmuka IDataContractSurrogate yang menangani impor skema.

Keterangan

Jenis antarmuka untuk opsi ini adalah ISerializationSurrogateProvider, tetapi untuk memanfaatkan sepenuhnya kemampuan modifikasi kode yang diimpor, menggunakan ISerializationSurrogateProvider2ISerializationSurrogateProvider2 yang juga mengimplementasikan ISerializationCodeDomSurrogateProvider direkomendasikan.

Berlaku untuk