SurrogateSelector.RemoveSurrogate(Type, StreamingContext) 方法

定义

移除与给定类型关联的代理项。

public:
 virtual void RemoveSurrogate(Type ^ type, System::Runtime::Serialization::StreamingContext context);
public virtual void RemoveSurrogate (Type type, System.Runtime.Serialization.StreamingContext context);
abstract member RemoveSurrogate : Type * System.Runtime.Serialization.StreamingContext -> unit
override this.RemoveSurrogate : Type * System.Runtime.Serialization.StreamingContext -> unit
Public Overridable Sub RemoveSurrogate (type As Type, context As StreamingContext)

参数

type
Type

要移除其代理项的 Type

context
StreamingContext

当前代理项的 StreamingContext

例外

type 参数为 null

注解

此方法不检查链接的代理项。

适用于