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

SynchronizeModeActions() private method

private SynchronizeModeActions ( ) : void
return void
        private void SynchronizeModeActions()
        {
            ISnapInPlatform snapInPlatform = this.SnapIn.SnapInPlatform;
            if (snapInPlatform == null)
            {
                throw Microsoft.ManagementConsole.Internal.Utility.CreateClassNotInitializedException("SnapIn", "SynchronizeModeActions");
            }
            foreach (ActionsPaneItemData data in this.ModeActionsPaneItems.Data.GetItems())
            {
                data.InsertionLocation = ActionsInsertionLocation.View;
            }
            UpdateViewActionsCommand command = new UpdateViewActionsCommand();
            command.ViewInstanceId = this.ViewInstanceId;
            command.ActionType = ViewActionType.Mode;
            command.Data = this.ModeActionsPaneItems.Data;
            snapInPlatform.ProcessCommand(command);
        }