WindowsIdentity.IsGuest 속성
정의
public:
virtual property bool IsGuest { bool get(); };
public virtual bool IsGuest { get; }
member this.IsGuest : bool
Public Overridable ReadOnly Property IsGuest As Boolean
속성 값
사용자 계정이 Guest 계정이면 true
이고, 그렇지 않으면 false
입니다.true
if the user account is a Guest account; otherwise, false
.
예제
다음 코드의 사용을 보여 줍니다.는 IsGuest 사용자 계정으로 식별 되는지를 나타내는 값을 반환 하도록 속성을 Guest 시스템 계정입니다.The following code shows the use of the IsGuest property to return a value indicating whether the user account is identified as a Guest account by the system. 이 코드 예제는에 대해 제공 된 큰 예제의 일부는 WindowsIdentity 클래스입니다.This code example is part of a larger example provided for the WindowsIdentity class.
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