SerializationRecord.TypeNameMatches(Type) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Compares the type name read from the payload against the specified type.
public:
bool TypeNameMatches(Type ^ type);
public bool TypeNameMatches(Type type);
member this.TypeNameMatches : Type -> bool
Public Function TypeNameMatches (type As Type) As Boolean
Parameters
- type
- Type
The type to compare against.
Returns
true
if the serialized type name matches the provided type; otherwise, false
.
Exceptions
type
is null
.
Remarks
This method ignores assembly names.
This method does NOT take into account member names or their types.
Applies to
Samarbeta med oss på GitHub
Källan för det här innehållet finns på GitHub, där du även kan skapa och granska ärenden och pull-begäranden. Se vår deltagarguide för mer information.