Microsoft.ManagementConsole.SharedDataItem.RequestDataUpdate C# (CSharp) Method

RequestDataUpdate() public method

public RequestDataUpdate ( byte value ) : void
value byte
return void
        public void RequestDataUpdate(byte[] value)
        {
            if (this._snapInPlatform == null)
            {
                throw new InvalidOperationException(Microsoft.ManagementConsole.Internal.Utility.LoadResourceString(Microsoft.ManagementConsole.Internal.Strings.AdvancedSharedDataItemNotInitialized));
            }
            ClipboardData data = new ClipboardData();
            data.ClipboardFormatId = base.ClipboardFormatId;
            data.SetValue(value);
            RequestWriteDataCommand command = new RequestWriteDataCommand();
            command.DataObjectId = this._dataObjectId;
            command.RequestedValue = data;
            try
            {
                this._snapInPlatform.ProcessCommand(command);
            }
            catch (Microsoft.ManagementConsole.Internal.PrimarySnapInDataException exception)
            {
                throw new Microsoft.ManagementConsole.Advanced.PrimarySnapInDataException(exception.Message, exception);
            }
        }