PnrpPermission(PermissionState) Construtor

Definição

Inicializa uma nova instância da classe PnrpPermission com o estado da permissão inicial fornecido.Initializes a new instance of the PnrpPermission class with the supplied initial permission state.

public:
 PnrpPermission(System::Security::Permissions::PermissionState state);
public PnrpPermission (System.Security.Permissions.PermissionState state);
new System.Net.PeerToPeer.PnrpPermission : System.Security.Permissions.PermissionState -> System.Net.PeerToPeer.PnrpPermission
Public Sub New (state As PermissionState)

Parâmetros

state
PermissionState

Um dos valores na enumeração PermissionState.One of the values in the PermissionState enumeration.

Comentários

As instâncias desse tipo têm dois Estados de permissão: eles não têm acesso aos recursos protegidos pela permissão, ou têm acesso total irrestrito a esses recursos.Instances of this type have two permission states: they either have no access to the resource(s) protected by the permission, or they have unrestricted full access to those resources.

Se state for irrestrito, a instância PnrpPermission passará por todas as demandas.If state is Unrestricted, the PnrpPermission instance passes all demands. Se state contiver qualquer outro valor, a instância PnrpPermission falhará todas as demandas.If state contains any other value, the PnrpPermission instance fails all demands.

Aplica-se a

Confira também