WindowsIdentity.IsGuest 속성

정의

사용자 계정이 시스템에서 Guest 계정으로 식별되는지 여부를 나타내는 값을 가져옵니다.

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

속성 값

Boolean

사용자 계정이 Guest 계정이면 true이고, 그렇지 않으면 false입니다.

예제

다음 코드에서는 속성을 사용 하 여 IsGuest 사용자 계정이 시스템에서 계정으로 식별 되는지 여부를 나타내는 값을 반환 하는 방법을 보여 줍니다 Guest . 이 코드 예제는에 대해 제공 된 큰 예제의 일부는 WindowsIdentity 클래스입니다.

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

적용 대상