Share via


ViewDescriptionCollection Class

 

This is a sealed class that represents a collection of ViewDescription objects.

Namespace:   Microsoft.ManagementConsole
Assembly:  Microsoft.ManagementConsole (in Microsoft.ManagementConsole.dll)

Inheritance Hierarchy

System.Object
  System.Collections.CollectionBase
    Microsoft.ManagementConsole.BaseCollection
      Microsoft.ManagementConsole.ViewDescriptionCollection

Syntax

public sealed class ViewDescriptionCollection : BaseCollection
public ref class ViewDescriptionCollection sealed : BaseCollection
[<Sealed>]
type ViewDescriptionCollection = 
    class
        inherit BaseCollection
    end
Public NotInheritable Class ViewDescriptionCollection
    Inherits BaseCollection

Constructors

Name Description
System_CAPS_pubmethod ViewDescriptionCollection()

Initializes a new instance of the ViewDescriptionCollection class.

Properties

Name Description
System_CAPS_pubproperty Capacity

(Inherited from CollectionBase.)

System_CAPS_pubproperty Count

(Inherited from CollectionBase.)

System_CAPS_pubproperty DefaultIndex

Gets or sets the index of the default view description for the collection. The default view description specifies the view to present when the scope node is selected.

System_CAPS_pubproperty Id

Gets the internally generated integer that uniquely identifies the ViewDescriptionCollection instance at runtime.

System_CAPS_pubproperty Item[Int32]

Gets or sets the ViewDescription object at the specified index.

System_CAPS_pubproperty SyncRoot

Gets an object that can be used to synchronize access to the collection. (Inherited from BaseCollection.)

Methods

Name Description
System_CAPS_pubmethod Add(ViewDescription)

Adds a ViewDescription object to the end of the collection.

System_CAPS_pubmethod AddRange(ViewDescription[])

Adds an array of ViewDescription objects to the end of the collection.

System_CAPS_pubmethod Clear()

(Inherited from CollectionBase.)

System_CAPS_pubmethod Contains(Object)

Determines whether an item is in the collection. (Inherited from BaseCollection.)

System_CAPS_pubmethod Contains(ViewDescription)

Determines whether a specific ViewDescription object is in the collection.

System_CAPS_pubmethod CopyTo(ViewDescription[], Int32)

Copies the contents of the collection to a ViewDescription array, starting at a specified array index.

System_CAPS_pubmethod Equals(Object)

(Inherited from Object.)

System_CAPS_pubmethod GetEnumerator()

(Inherited from CollectionBase.)

System_CAPS_pubmethod GetHashCode()

(Inherited from Object.)

System_CAPS_pubmethod GetType()

(Inherited from Object.)

System_CAPS_pubmethod IndexOf(ViewDescription)

Determines the index of a specific ViewDescription object in the collection.

System_CAPS_pubmethod Insert(Int32, ViewDescription)

Inserts a ViewDescription object into the collection.

System_CAPS_pubmethod InsertRange(Int32, ViewDescription[])

Inserts an array of ViewDescription objects into the collection at the specified index.

System_CAPS_pubmethod Remove(ViewDescription)

Removes the first occurrence of a specific ViewDescription object from the collection.

System_CAPS_pubmethod RemoveAt(Int32)

(Inherited from CollectionBase.)

System_CAPS_pubmethod ToArray()

Copies the entire contents of the collection to a new array of ViewDescription objects.

System_CAPS_pubmethod ToString()

(Inherited from Object.)

Explicit Interface Implementations

Name Description
System_CAPS_pubinterfaceSystem_CAPS_privmethod ICollection.CopyTo(Array, Int32)

(Inherited from CollectionBase.)

System_CAPS_pubinterfaceSystem_CAPS_privmethod IList.Add(Object)

(Inherited from CollectionBase.)

System_CAPS_pubinterfaceSystem_CAPS_privmethod IList.Contains(Object)

(Inherited from CollectionBase.)

System_CAPS_pubinterfaceSystem_CAPS_privmethod IList.IndexOf(Object)

(Inherited from CollectionBase.)

System_CAPS_pubinterfaceSystem_CAPS_privmethod IList.Insert(Int32, Object)

(Inherited from CollectionBase.)

System_CAPS_pubinterfaceSystem_CAPS_privmethod IList.Remove(Object)

(Inherited from CollectionBase.)

System_CAPS_pubinterfaceSystem_CAPS_privproperty ICollection.IsSynchronized

(Inherited from CollectionBase.)

System_CAPS_pubinterfaceSystem_CAPS_privproperty ICollection.SyncRoot

(Inherited from CollectionBase.)

System_CAPS_pubinterfaceSystem_CAPS_privproperty IList.IsFixedSize

(Inherited from CollectionBase.)

System_CAPS_pubinterfaceSystem_CAPS_privproperty IList.IsReadOnly

(Inherited from CollectionBase.)

System_CAPS_pubinterfaceSystem_CAPS_privproperty IList.Item[Int32]

(Inherited from CollectionBase.)

Remarks

A ViewDescriptionCollection instance is associated with a scope node and contains the supported view descriptions for the scope node.

Thread Safety

Any public static ( Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

ScopeNode
Microsoft.ManagementConsole Namespace

Return to top