OpenHome.Net.ControlPoint.Proxies.CpProxyRaumfeldComConfigService1.EndGetPreferences C# (CSharp) Method

EndGetPreferences() public method

Retrieve the output arguments from an asynchronously invoked action.
This may only be called from the callback set in the above Begin function.
public EndGetPreferences ( IntPtr aAsyncHandle, String &aPreferences, uint &aRevision ) : void
aAsyncHandle System.IntPtr Argument passed to the delegate set in the above Begin function
aPreferences String
aRevision uint
return void
        public void EndGetPreferences(IntPtr aAsyncHandle, out String aPreferences, out uint aRevision)
        {
            uint code;
            string desc;
            if (Invocation.Error(aAsyncHandle, out code, out desc))
            {
                throw new ProxyError(code, desc);
            }
            uint index = 0;
            aPreferences = Invocation.OutputString(aAsyncHandle, index++);
            aRevision = Invocation.OutputUint(aAsyncHandle, index++);
        }

Usage Example

Example #1
0
 protected override void CompleteRequest(IntPtr aAsyncHandle)
 {
     iService.EndGetPreferences(aAsyncHandle, out iPreferences, out iRevision);
 }