OpenHome.Net.ControlPoint.Proxies.CpProxyOpenhomeOrgTestBasic1.SyncToggle C# (CSharp) Method

SyncToggle() public method

Invoke the action synchronously
Blocks until the action has been processed on the device and sets any output arguments
public SyncToggle ( bool aValue, bool &aResult ) : void
aValue bool
aResult bool
return void
        public void SyncToggle(bool aValue, out bool aResult)
        {
            SyncToggleOpenhomeOrgTestBasic1 sync = new SyncToggleOpenhomeOrgTestBasic1(this);
            BeginToggle(aValue, sync.AsyncComplete());
            sync.Wait();
            sync.ReportError();
            aResult = sync.Result();
        }