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 match 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
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.