public void EndCreateReference(IntPtr aAsyncHandle, out String aNewID) { uint code; string desc; if (Invocation.Error(aAsyncHandle, out code, out desc)) { throw new ProxyError(code, desc); } uint index = 0; aNewID = Invocation.OutputString(aAsyncHandle, index++); }