Share via


IUnrestrictedPermission.IsUnrestricted 메서드

정의

사용 권한으로 보호되는 리소스에 대한 무제한 액세스가 허용되는지 여부를 나타내는 값을 반환합니다.

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

적용 대상