public BeginToggle ( bool aValue, CallbackAsyncComplete aCallback ) : void | ||
aValue | bool | |
aCallback | CallbackAsyncComplete | Delegate to run when the action completes. /// This is guaranteed to be run but may indicate an error |
return | void |
public void BeginToggle(bool aValue, CallbackAsyncComplete aCallback)
{
Invocation invocation = iService.Invocation(iActionToggle, aCallback);
int inIndex = 0;
invocation.AddInput(new ArgumentBool((ParameterBool)iActionToggle.InputParameter(inIndex++), aValue));
int outIndex = 0;
invocation.AddOutput(new ArgumentBool((ParameterBool)iActionToggle.OutputParameter(outIndex++)));
iService.InvokeAction(invocation);
}