Share via


WindowsIdentity.IsSystem Özellik

Tanım

Kullanıcı hesabının sistem tarafından bir hesap olarak tanımlanıp tanımlanmadığını belirten bir System değer alır.

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

Özellik Değeri

true kullanıcı hesabı bir System hesapsa; değilse, false.

Örnekler

Aşağıdaki kod, kullanıcı hesabının sistem tarafından bir hesap olarak System tanımlanıp tanımlanmadığını belirten bir değer döndürmek için özelliğinin kullanımını IsSystem gösterir. Bu kod örneği, sınıfı için WindowsIdentity sağlanan daha büyük bir örneğin parçasıdır.

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

Şunlara uygulanır