DirectoryControlCollection.Add(DirectoryControl) Metod

Definition

Metoden Add(DirectoryControl) lägger till ett nytt DirectoryControl objekt i samlingen.

public:
 int Add(System::DirectoryServices::Protocols::DirectoryControl ^ control);
public int Add(System.DirectoryServices.Protocols.DirectoryControl control);
member this.Add : System.DirectoryServices.Protocols.DirectoryControl -> int
Public Function Add (control As DirectoryControl) As Integer

Parametrar

control
DirectoryControl

Objektet som DirectoryControl ska läggas till.

Returer

Indexet för DirectoryControlCollection där DirectoryControl objektet har lagts till.

Undantag

control är en nullreferens (Nothing i Visual Basic).

Gäller för