IUnrestrictedPermission.IsUnrestricted メソッド

定義

アクセス許可により保護されているリソースへの無制限アクセスが可能かどうかを示す値を返します。Returns a value indicating whether unrestricted access to the resource protected by the permission is allowed.

public:
 bool IsUnrestricted();
public bool IsUnrestricted ();
abstract member IsUnrestricted : unit -> bool
Public Function IsUnrestricted () As Boolean

戻り値

アクセス許可により保護されているリソースの無制限使用が可能な場合は true、それ以外の場合は falsetrue if unrestricted use of the resource protected by the permission is allowed; otherwise, false.

次のコード例は、IsUnrestricted メソッドを実装する方法を示しています。The following code example demonstrates implementing the IsUnrestricted method. このコード例は、IUnrestrictedPermission クラス用に用意されている大規模な例の一部です。This code example is part of a larger example provided for the IUnrestrictedPermission class.

    // 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

適用対象