Microsoft.ManagementConsole.View.OnSelectionContextChanged C# (CSharp) Method

OnSelectionContextChanged() private method

private OnSelectionContextChanged ( int id, SelectionCardinality type, System.Guid uniqueNodeTypes, WritableSharedDataItem sharedDataItems ) : void
id int
type SelectionCardinality
uniqueNodeTypes System.Guid
sharedDataItems WritableSharedDataItem
return void
        internal void OnSelectionContextChanged(int id, SelectionCardinality type, Guid[] uniqueNodeTypes, WritableSharedDataItem[] sharedDataItems)
        {
            ISnapInPlatform snapInPlatform = this.SnapIn.SnapInPlatform;
            if (snapInPlatform == null)
            {
                throw Microsoft.ManagementConsole.Internal.Utility.CreateClassNotInitializedException("SnapIn", "OnSelectionContextChanged");
            }
            SetNewSelectionCommand command = new SetNewSelectionCommand();
            command.ViewInstanceId = this.ViewInstanceId;
            command.Id = id;
            command.SelectionCardinality = type;
            command.UniqueNodeTypes = uniqueNodeTypes;
            command.UpdatedSharedData = this.CreateSharedDataObjectUpdate(sharedDataItems, new WritableSharedDataItem[0], new WritableSharedDataItem[0]);
            snapInPlatform.ProcessCommand(command);
        }