WindowsIdentity.IsSystem Egenskap

Definition

Hämtar ett värde som anger om användarkontot identifieras som ett System konto av systemet.

public:
 virtual property bool IsSystem { bool get(); };
public virtual bool IsSystem { get; }
member this.IsSystem : bool
Public Overridable ReadOnly Property IsSystem As Boolean

Egenskapsvärde

trueom användarkontot är ett System konto, annars . false

Exempel

Följande kod visar användningen av IsSystem egenskapen för att returnera ett värde som anger om användarkontot identifieras som ett System konto av systemet. Det här kodexemplet är en del av ett större exempel för WindowsIdentity klassen.

if ( windowsIdentity->IsSystem )
{
   propertyDescription = String::Concat( propertyDescription, ", is a System account" );
}
if (windowsIdentity.IsSystem)
{
    propertyDescription += ", is a System account";
}
If (windowsIdentity.IsSystem) Then
    propertyDescription += ", is a System account"
End If

Gäller för