Partager via


IUnrestrictedPermission.IsUnrestricted Méthode

Définition

Retourne une valeur indiquant si un accès illimité à la ressource protégée par l’autorisation est autorisé.

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

Retours

true si l’utilisation sans restriction de la ressource protégée par l’autorisation est autorisée ; sinon, false.

Exemples

L’exemple de code suivant illustre l’implémentation de la IsUnrestricted méthode. Cet exemple de code fait partie d’un exemple plus grand fourni pour la IUnrestrictedPermission classe .

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

S’applique à