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);
}