SerializationRecord.TypeNameMatches(Type) 方法

定义

将从有效负载中读取的类型名称与指定类型进行比较。

public:
 bool TypeNameMatches(Type ^ type);
public bool TypeNameMatches (Type type);
member this.TypeNameMatches : Type -> bool
Public Function TypeNameMatches (type As Type) As Boolean

参数

type
Type

要与之进行比较的类型。

返回

如果序列化类型名称与所提供的类型匹配,则 true;否则,false

注解

此方法忽略程序集名称。

此方法不考虑成员名称或其泛型类型。

适用于