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

EndGetPublicKey() 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 EndGetPublicKey ( IntPtr aAsyncHandle, String &aKey ) : void
aAsyncHandle System.IntPtr Argument passed to the delegate set in the above Begin function
aKey String
return void
        public void EndGetPublicKey(IntPtr aAsyncHandle, out String aKey)
        {
            uint code;
            string desc;
            if (Invocation.Error(aAsyncHandle, out code, out desc))
            {
                throw new ProxyError(code, desc);
            }
            uint index = 0;
            aKey = Invocation.OutputString(aAsyncHandle, index++);
        }

Usage Example

Example #1
0
 protected override void CompleteRequest(IntPtr aAsyncHandle)
 {
     iService.EndGetPublicKey(aAsyncHandle, out iKey);
 }