Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Equals Method
Collapse the table of content
Expand the table of content

StrongNameMembershipCondition.Equals Method

Determines whether the StrongName from the specified object is equivalent to the StrongName contained in the current StrongNameMembershipCondition.

Namespace:  System.Security.Policy
Assembly:  mscorlib (in mscorlib.dll)

public override bool Equals(
	Object o
)

Parameters

o
Type: System.Object

The object to compare to the current StrongNameMembershipCondition.

Return Value

Type: System.Boolean
true if the StrongName from the specified object is equivalent to the StrongName contained in the current StrongNameMembershipCondition; otherwise, false.

Implements

IMembershipCondition.Equals(Object)

ExceptionCondition
ArgumentException

The PublicKey property of the current object or the specified object is null.

For two StrongName classes to be equal, their name, version, and public key blob must match exactly.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0, 1.1

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
Show:
© 2015 Microsoft