Bagikan melalui


CodeNamespaceImportCollection.Count Properti

Definisi

Mendapatkan jumlah namespace dalam koleksi.

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

Nilai Properti

Jumlah namespace dalam koleksi.

Penerapan

Contoh

Kode berikut mendapatkan jumlah item dalam CodeNamespaceImportCollection objek.

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

Berlaku untuk