SecurityIdentifier.op_Equality Method (SecurityIdentifier, SecurityIdentifier)

Compares two SecurityIdentifier objects to determine whether they are equal. They are considered equal if they have the same canonical representation as the one returned by the Value property or if they are both a null reference (Nothing in Visual Basic).

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

public static bool operator == (
	SecurityIdentifier left,
	SecurityIdentifier right
)
Not applicable.

Parameters

left

The left SecurityIdentifier operand to use for the equality comparison. This parameter can be a null reference (Nothing in Visual Basic).

right

The right SecurityIdentifier operand to use for the equality comparison. This parameter can be a null reference (Nothing in Visual Basic).

Return Value

true if left and right are equal; otherwise, false.

Windows Server 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0

Community Additions

ADD
Show: