CodeNamespaceImportCollection.Count Eigenschap

Definitie

Hiermee haalt u het aantal naamruimten in de verzameling op.

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

Waarde van eigenschap

Het aantal naamruimten in de verzameling.

Implementeringen

Voorbeelden

Met de volgende code wordt het aantal items in een CodeNamespaceImportCollection object opgehaald.

// 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

Van toepassing op