CodeNamespaceCollection.Add(CodeNamespace) Yöntem

Tanım

Belirtilen CodeNamespace nesneyi koleksiyona ekler.

public:
 int Add(System::CodeDom::CodeNamespace ^ value);
public int Add(System.CodeDom.CodeNamespace value);
member this.Add : System.CodeDom.CodeNamespace -> int
Public Function Add (value As CodeNamespace) As Integer

Parametreler

value
CodeNamespace

CodeNamespace Eklenecek.

Döndürülenler

Yeni öğenin eklendiği dizin.

Örnekler

Aşağıdaki örnekte, bir örneğe nesne Add eklemek CodeNamespace için yönteminin nasıl kullanılacağı CodeNamespaceCollection gösterilmektedir.

// Adds a CodeNamespace to the collection.
collection.Add( new CodeNamespace("TestNamespace") );
' Adds a CodeNamespace to the collection.
collection.Add(New CodeNamespace("TestNamespace"))

Şunlara uygulanır

Ayrıca bkz.