Aracılığıyla paylaş


CodeNamespaceImportCollection.Count Özellik

Tanım

Koleksiyondaki ad alanlarının sayısını alır.

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

Özellik Değeri

Koleksiyondaki ad alanı sayısı.

Uygulamalar

Örnekler

Aşağıdaki kod bir CodeNamespaceImportCollection nesnedeki öğelerin sayısını alır.

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

Şunlara uygulanır