次の方法で共有


DataContractSerializerExtensions.SetSerializationSurrogateProvider メソッド

定義

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

パラメーター

serializer
DataContractSerializer

サロゲートされているシリアライザー。

provider
ISerializationSurrogateProvider

サロゲート シリアル化プロバイダー。

適用対象