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

適用対象