WindowsIdentity.IsSystem プロパティ

定義

システムによってユーザー アカウントが System アカウントとして識別されているかどうかを示す値を取得します。

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

プロパティ値

Boolean

ユーザー アカウントが System アカウントである場合は true。それ以外の場合は false

次のコードは、 プロパティを使用して、ユーザー アカウントがシステムによってアカウントとして識別されるかどうかを示す値 IsSystem System を返します。 このコード例は、WindowsIdentity クラスのために提供されている大規模な例の一部です。

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

適用対象