CodeNamespaceImportCollection.Count Właściwość

Definicja

Pobiera liczbę przestrzeni nazw w kolekcji.

public:
 property int Count { int get(); };
public int Count { get; }
member this.Count : int
Public ReadOnly Property Count As Integer

Wartość właściwości

Int32

Liczba przestrzeni nazw w kolekcji.

Implementuje

Przykłady

Poniższy kod pobiera liczbę elementów w CodeNamespaceImportCollection obiekcie.

// Retrieves the count of the items in the collection.
int collectionCount = collection->Count;
// Retrieves the count of the items in the collection.
int collectionCount = collection.Count;
' Retrieves the count of the items in the collection.
Dim collectionCount As Integer = collection.Count

Dotyczy