IUnrestrictedPermission.IsUnrestricted Metoda

Definicja

Zwraca wartość wskazującą, czy nieograniczony dostęp do zasobu chronionego przez uprawnienie jest dozwolony.

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

Zwraca

true jeśli nieograniczone użycie zasobu chronionego przez uprawnienie jest dozwolone; w przeciwnym razie , false.

Przykłady

Poniższy przykład kodu przedstawia implementację IsUnrestricted metody. Ten przykład kodu jest częścią większego przykładu podanego IUnrestrictedPermission dla klasy.

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

Dotyczy