WindowsIdentity.IsGuest 속성
정의
중요
일부 정보는 릴리스되기 전에 상당 부분 수정될 수 있는 시험판 제품과 관련이 있습니다. Microsoft는 여기에 제공된 정보에 대해 어떠한 명시적이거나 묵시적인 보증도 하지 않습니다.
사용자 계정이 시스템에서 Guest 계정으로 식별되는지 여부를 나타내는 값을 가져옵니다.
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
입니다.
예제
다음 코드에서는 속성을 사용 하 여 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