Share via


WindowsIdentity.IsSystem Properti

Definisi

Mendapatkan nilai yang menunjukkan apakah akun pengguna diidentifikasi sebagai System akun oleh sistem.

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

Nilai Properti

true jika akun pengguna adalah System akun; jika tidak, false.

Contoh

Kode berikut menunjukkan penggunaan IsSystem properti untuk mengembalikan nilai yang menunjukkan apakah akun pengguna diidentifikasi sebagai System akun oleh sistem. Contoh kode ini adalah bagian dari contoh yang lebih besar yang disediakan untuk WindowsIdentity kelas .

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

Berlaku untuk