IdentityReference.Equality(IdentityReference, IdentityReference) Operátor

Definice

Porovná dva IdentityReference objekty a určí, jestli jsou stejné. Jsou považovány za stejné, pokud mají stejnou kanonický název reprezentace jako ten vrácený Value vlastností nebo pokud jsou oba null.

public:
 static bool operator ==(System::Security::Principal::IdentityReference ^ left, System::Security::Principal::IdentityReference ^ right);
public static bool operator ==(System.Security.Principal.IdentityReference? left, System.Security.Principal.IdentityReference? right);
public static bool operator ==(System.Security.Principal.IdentityReference left, System.Security.Principal.IdentityReference right);
static member ( = ) : System.Security.Principal.IdentityReference * System.Security.Principal.IdentityReference -> bool
Public Shared Operator == (left As IdentityReference, right As IdentityReference) As Boolean

Parametry

left
IdentityReference

Levý IdentityReference operand, který se použije pro porovnání rovnosti. Tento parametr může být null.

right
IdentityReference

Pravý IdentityReference operand, který se má použít pro porovnání rovnosti. Tento parametr může být null.

Návraty

true pokud left a right jsou rovny; jinak , false.

Poznámky

Ekvivalentní metoda tohoto operátoru je IdentityReference.Equals.

Platí pro