StrongNameMembershipCondition::Equals Method (Object^)

 

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:
virtual bool Equals(
	Object^ o
) override

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.

Exception Condition
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
Available since 1.1
Return to top
Show: