DataContractSerializerExtensions.SetSerializationSurrogateProvider Methode

Definition

Gibt den Ersatzserialisierungsanbieter für dieses DataContractSerializer an.

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);
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)

Parameter

serializer
DataContractSerializer

Das Serialisierungsmodul, das ersetzt wird.

provider
ISerializationSurrogateProvider

Der Ersatzserialisierungsanbieter.

Gilt für: