Share via


SelectionData Class

 

This is a sealed class that contains data about selected items in a view.

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

Inheritance Hierarchy

System.Object
  Microsoft.ManagementConsole.SelectionData

Syntax

public sealed class SelectionData
public ref class SelectionData sealed 
[<Sealed>]
type SelectionData = class end
Public NotInheritable Class SelectionData

Properties

Name Description
System_CAPS_pubproperty ActionsPaneHelpItems

Gets the actions pane help items for the currently selected items.

System_CAPS_pubproperty ActionsPaneItems

Gets the actions pane items for the current selection.

System_CAPS_pubproperty DefaultDragAndDropVerb

Gets or sets the default verb to apply to a data object when dropped onto this selection.

System_CAPS_pubproperty Description

Gets or sets the description for the currently selected items.

System_CAPS_pubproperty DisplayName

Gets or sets the display name for the currently selected items.

System_CAPS_pubproperty EnabledStandardVerbs

Gets or sets the enabled StandardVerbs for the currently selected items.

System_CAPS_pubproperty HelpTopic

Gets or sets the help topic for the current selection.

System_CAPS_pubproperty SelectionObject

Gets the selection object that is provided by the snap-in for the items that are represented by the new selection.

System_CAPS_pubproperty SharedData

Gets or sets the user-specified writable published data for this selection.

Methods

Name Description
System_CAPS_pubmethod BeginUpdates()

The first call in a series of calls to selection data methods and properties.

System_CAPS_pubmethod Clear()

Clears the selection context.

System_CAPS_pubmethod EndUpdates()

Called to signify the end of a series of calls to selection data methods and properties since BeginUpdates was last called.

System_CAPS_pubmethod Equals(Object)

(Inherited from Object.)

System_CAPS_pubmethod GetAllowedClipboardFormatIdsForPaste()

Gets the set of clipboard formats that can be pasted on the current selection.

System_CAPS_pubmethod GetHashCode()

(Inherited from Object.)

System_CAPS_pubmethod GetType()

(Inherited from Object.)

System_CAPS_pubmethod GetUniqueNodeTypes()

Gets the unique node types associated with the current selection. Clear and Update are the only methods that can modify the set of unique node types.

System_CAPS_pubmethod SetAllowedClipboardFormatIdsForPaste(String[])

Updates the set of clipboard formats that can be pasted on the current selection.

System_CAPS_pubmethod ShowPropertySheet(String)

Displays the property sheet for the selection. This method brings an existing sheet to the foreground.

System_CAPS_pubmethod ShowPropertySheet(String, Boolean)

This method displays a property sheet for the selection and uses a parameter that decides whether the Apply button is to be hidden. This method brings an existing sheet to the foreground.

System_CAPS_pubmethod ToString()

(Inherited from Object.)

System_CAPS_pubmethod Update(Object, Boolean, Guid[], WritableSharedData)

Updates the selection context.

Remarks

Actions pane items, standard verbs, and property sheets for selected items in a view are exposed through this class. Whenever a selection changes in a view, the snap-in must update the selection context by calling either the Clear method or the Update method.

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

Microsoft.ManagementConsole Namespace

Return to top