IUnrestrictedPermission.IsUnrestricted 메서드
정의
중요
일부 정보는 릴리스되기 전에 상당 부분 수정될 수 있는 시험판 제품과 관련이 있습니다. Microsoft는 여기에 제공된 정보에 대해 어떠한 명시적이거나 묵시적인 보증도 하지 않습니다.
사용 권한으로 보호되는 리소스에 대한 무제한 액세스가 허용되는지 여부를 나타내는 값을 반환합니다.
public:
bool IsUnrestricted();
public bool IsUnrestricted ();
abstract member IsUnrestricted : unit -> bool
Public Function IsUnrestricted () As Boolean
반환
사용 권한으로 보호되는 리소스에 대한 무제한 액세스를 허용하면true
이고, 그렇지 않으면 false
입니다.
예제
다음 코드 예제에서는 메서드 구현을 IsUnrestricted 보여 줍니다. 이 코드 예제는에 대해 제공 된 큰 예제의 일부는 IUnrestrictedPermission 클래스입니다.
// Returns true if permission is effectively unrestricted.
public:
virtual bool IsUnrestricted()
{
// This means that the object is unrestricted at runtime.
return stateFlags == SoundPermissionState::PlayAnySound;
}
// Returns true if permission is effectively unrestricted.
public Boolean IsUnrestricted()
{
// This means that the object is unrestricted at runtime.
return m_flags == SoundPermissionState.PlayAnySound;
}
' Returns true if permission is effectively unrestricted.
Public Function IsUnrestricted() As [Boolean] Implements IUnrestrictedPermission.IsUnrestricted
' This means that the object is unrestricted at runtime.
Return m_flags = SoundPermissionState.PlayAnySound
End Function 'IsUnrestricted