SerializationBinder.BindToName(Type, String, String) 方法

定义

当在派生类中重写时,控制是否将序列化对象绑定到类型。

public:
 virtual void BindToName(Type ^ serializedType, [Runtime::InteropServices::Out] System::String ^ % assemblyName, [Runtime::InteropServices::Out] System::String ^ % typeName);
public virtual void BindToName (Type serializedType, out string? assemblyName, out string? typeName);
public virtual void BindToName (Type serializedType, out string assemblyName, out string typeName);
abstract member BindToName : Type * string * string -> unit
override this.BindToName : Type * string * string -> unit
Public Overridable Sub BindToName (serializedType As Type, ByRef assemblyName As String, ByRef typeName As String)

参数

serializedType
Type

格式化程序创建其新实例的对象的类型。

assemblyName
String

指定序列化对象的 Assembly 名称。

typeName
String

指定序列化对象的 Type 名称。

适用于