DirectoryAttributeCollection.Add(DirectoryAttribute) Metod
Definition
Viktigt
En del information gäller för förhandsversionen av en produkt och kan komma att ändras avsevärt innan produkten blir allmänt tillgänglig. Microsoft lämnar inga garantier, uttryckliga eller underförstådda, avseende informationen som visas här.
Metoden Add(DirectoryAttribute) lägger till ett DirectoryAttribute objekt i samlingen.
public:
int Add(System::DirectoryServices::Protocols::DirectoryAttribute ^ attribute);
public int Add(System.DirectoryServices.Protocols.DirectoryAttribute attribute);
member this.Add : System.DirectoryServices.Protocols.DirectoryAttribute -> int
Public Function Add (attribute As DirectoryAttribute) As Integer
Parametrar
- attribute
- DirectoryAttribute
Objektet som DirectoryAttribute ska läggas till.
Returer
Det nollbaserade indexet i samlingen där lades DirectoryAttribute till.
Undantag
attribute är en nullreferens (Nothing i Visual Basic).