CustomAce(AceType, AceFlags, Byte[]) Construtor
Definição
public:
CustomAce(System::Security::AccessControl::AceType type, System::Security::AccessControl::AceFlags flags, cli::array <System::Byte> ^ opaque);
public CustomAce (System.Security.AccessControl.AceType type, System.Security.AccessControl.AceFlags flags, byte[] opaque);
public CustomAce (System.Security.AccessControl.AceType type, System.Security.AccessControl.AceFlags flags, byte[]? opaque);
new System.Security.AccessControl.CustomAce : System.Security.AccessControl.AceType * System.Security.AccessControl.AceFlags * byte[] -> System.Security.AccessControl.CustomAce
Public Sub New (type As AceType, flags As AceFlags, opaque As Byte())
Parâmetros
- type
- AceType
Tipo da nova ACE (Entrada de Controle de Acesso).Type of the new Access Control Entry (ACE). Esse valor deve ser maior que MaxDefinedAceType.This value must be greater than MaxDefinedAceType.
- flags
- AceFlags
Sinalizadores que especificam informações sobre a herança, a propagação de herança e as condições de auditoria para a nova ACE.Flags that specify information about the inheritance, inheritance propagation, and auditing conditions for the new ACE.
- opaque
- Byte[]
Uma matriz de valores de bytes que contém os dados da nova ACE.An array of byte values that contains the data for the new ACE. Este valor pode ser null.This value can be null. O comprimento dessa matriz não deve ser maior que o valor do campo MaxOpaqueLength e deve ser um múltiplo de quatro.The length of this array must not be greater than the value of the MaxOpaqueLength field, and must be a multiple of four.
Exceções
O valor do parâmetro type não é maior do que MaxDefinedAceType ou o comprimento da matriz opaque é maior que o valor do campo MaxOpaqueLength ou não um múltiplo de quatro.The value of the type parameter is not greater than MaxDefinedAceType or the length of the opaque array is either greater than the value of the MaxOpaqueLength field or not a multiple of four.
Comentários
Os opaque dados não são clonados.The opaque data is not cloned. Os dados devem ser clonados antes de chamar esse construtor se o chamador não confiar na origem dos dados para não modificar os dados.The data should be cloned before calling this constructor if the caller does not trust the source of the data to not modify the data.