SelectionData.Update Method (Object, Boolean, Guid[], WritableSharedData)

 

Updates the selection context.

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

Syntax

public void Update(
    object selectionValue,
    bool multiSelection,
    Guid[] uniqueNodeTypes,
    WritableSharedData sharedData
)
public:
void Update(
    Object^ selectionValue,
    bool multiSelection,
    array<Guid>^ uniqueNodeTypes,
    WritableSharedData^ sharedData
)
member Update : 
        selectionValue:Object *
        multiSelection:bool *
        uniqueNodeTypes:Guid[] *
        sharedData:WritableSharedData -> unit
Public Sub Update (
    selectionValue As Object,
    multiSelection As Boolean,
    uniqueNodeTypes As Guid(),
    sharedData As WritableSharedData
)

Parameters

  • selectionValue
    Type: System.Object

    A selection object provided by the snap-in for the item(s) represented by the new selection.

  • multiSelection
    Type: System.Boolean

    True if more than one item is selected; false if only one item is selected.

  • uniqueNodeTypes
    Type: System.Guid[]

    An array of unique node type GUIDs for the new selection.

Remarks

The snap-in must call this method when a selection is changed in the containing view such that one or more items are left selected. This method must be called even if the parameters do not change across selection changes. If needed, other properties must be explicitly updated after calling this method.

When a property sheet is created for a selection, an instance of SelectionObject is stored in the property sheet. Subsequently, if the user tries to create another property sheet for the same selection, the selection object that is provided through this method is compared to the selection objects in existing sheets. If there is a match, a new property sheet is not created. Instead, the existing property sheet is brought to the foreground. When implemented, IComparable interface methods are used to compare the two selection objects.

See Also

SelectionData Class
Microsoft.ManagementConsole Namespace

Return to top