CodeNamespaceImportCollection.Count プロパティ

定義

コレクション内の名前空間の数を取得します。Gets the number of namespaces in the collection.

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

プロパティ値

Int32

コレクション内の名前空間の数。The number of namespaces in the collection.

実装

次のコードは、オブジェクト内の項目の数を取得し CodeNamespaceImportCollection ます。The following code gets the count of items in a CodeNamespaceImportCollection object.

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

適用対象