Assembly: Microsoft.ComponentStudio.ComponentPlatformInterface (in microsoft.componentstudio.componentplatforminterface.dll)
Usage
Syntax
Visual Basic |
---|
Public Shared Function op_Equality( _ ByVal id1 As Identity, _ ByVal id2 As Identity _ ) As Boolean |
C# |
---|
public static bool op_Equality( Identity id1, Identity id2 ); |
C++ |
---|
public: static bool operator ==( Identity^ id1, Identity^ id2 ); |
J# |
---|
public static boolean op_Equality( Identity id1, Identity id2 ); |
JScript |
---|
public static function op_Equality( id1 : Identity, id2 : Identity ) : Boolean; |
Parameters
- id1
-
First
Identity
to be compared.
- id2
-
Second
Identity
to be compared.
Return Value
True if the given instances of Identity specify the sameIdentity
, false otherwise.Remarks
Two instances of Identity
are considered
equal if the following conditions are true:
-
The identities Name, PublicKeyToken, and Language properties match. This condition is case-sensitive.
-
The identities ProcessorArchitecture and VersionScope properties match. This condition is not case-sensitive.
-
The properties of Version match exactly, or at least one of the two identities is null. This condition is not version-dependent.
Thread Safety
Any public static (Shared in Visual
Basic) members of this type are thread safe. Any instance members
are not guaranteed to be thread safe.