DataConsumerCommandDispatcher.SendCommand Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
| Name | Description |
|---|---|
| SendCommand(String) |
Send a command through the Data Controller with no optional parameters |
| SendCommand(String, Dictionary<String,Object>) |
Send a command through the IDataController, with optional parameters |
SendCommand(String)
Send a command through the Data Controller with no optional parameters
public virtual void SendCommand(string command);
abstract member SendCommand : string -> unit
override this.SendCommand : string -> unit
Public Overridable Sub SendCommand (command As String)
Parameters
- command
- String
The command to send.
Remarks
This is provided for easy integration into UX elements that can easily bind to simple methods to indicate user intent. This will then be bound with data that has been bound, usually a unique identifier.
Note that the parameters are not included and do not specify a default value of null because this prevents the method signature from meeting the requirements of simple event/command method searches using reflection.
Applies to
SendCommand(String, Dictionary<String,Object>)
Send a command through the IDataController, with optional parameters
public virtual void SendCommand(string command, System.Collections.Generic.Dictionary<string,object> optionalParameters);
abstract member SendCommand : string * System.Collections.Generic.Dictionary<string, obj> -> unit
override this.SendCommand : string * System.Collections.Generic.Dictionary<string, obj> -> unit
Public Overridable Sub SendCommand (command As String, optionalParameters As Dictionary(Of String, Object))
Parameters
- command
- String
The command to send.
- optionalParameters
- Dictionary<String,Object>
The set of key-vair pairs to send as command parameters.
Remarks
If optional parameters are needed, this method allows for these to be passed in.