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
Значение свойства
Число пространств имен в коллекции.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