Compartilhar via


DirectorySearcher.SecurityMasks Propriedade

Definição

Obtém ou define um valor que indica quais informações de acesso de segurança para os atributos especificados devem ser retornadas pela pesquisa.

public:
 property System::DirectoryServices::SecurityMasks SecurityMasks { System::DirectoryServices::SecurityMasks get(); void set(System::DirectoryServices::SecurityMasks value); };
public System.DirectoryServices.SecurityMasks SecurityMasks { get; set; }
[System.DirectoryServices.DSDescription("DSSecurityMasks")]
[System.Runtime.InteropServices.ComVisible(false)]
public System.DirectoryServices.SecurityMasks SecurityMasks { get; set; }
member this.SecurityMasks : System.DirectoryServices.SecurityMasks with get, set
[<System.DirectoryServices.DSDescription("DSSecurityMasks")>]
[<System.Runtime.InteropServices.ComVisible(false)>]
member this.SecurityMasks : System.DirectoryServices.SecurityMasks with get, set
Public Property SecurityMasks As SecurityMasks

Valor da propriedade

Um dos valores de SecurityMasks.

Atributos

Exemplos

using System.DirectoryServices;  
...  
DirectorySearcher src = new DirectorySearcher("…");  
src.PropertiesToLoad = new string[] {ntSecurityDescriptor,…};  
src.SecurityMasks = SecurityMasks.Dacl | SecurityMasks.Owner;  
SearchResultCollection res = src.FindAll();  

Aplica-se a

Confira também