DataContractSerializerExtensions.SetSerializationSurrogateProvider(DataContractSerializer, ISerializationSurrogateProvider) Metodo

Definizione

Specifica un provider di serializzazione surrogato per questo DataContractSerializer.Specifies a surrogate serialization provider for this DataContractSerializer.

public:
[System::Runtime::CompilerServices::Extension]
 static void SetSerializationSurrogateProvider(System::Runtime::Serialization::DataContractSerializer ^ serializer, System::Runtime::Serialization::ISerializationSurrogateProvider ^ provider);
public static void SetSerializationSurrogateProvider (this System.Runtime.Serialization.DataContractSerializer serializer, System.Runtime.Serialization.ISerializationSurrogateProvider provider);
static member SetSerializationSurrogateProvider : System.Runtime.Serialization.DataContractSerializer * System.Runtime.Serialization.ISerializationSurrogateProvider -> unit
<Extension()>
Public Sub SetSerializationSurrogateProvider (serializer As DataContractSerializer, provider As ISerializationSurrogateProvider)

Parametri

serializer
DataContractSerializer

Serializzatore che viene sostituito.The serializer which is being surrogated.

provider
ISerializationSurrogateProvider

Provider di serializzazione surrogato.The surrogate serialization provider.

Si applica a