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

BeginWriteFile() public method

Invoke the action asynchronously
Returns immediately and will run the client-specified callback when the action later completes. Any output arguments can then be retrieved by calling EndWriteFile().
public BeginWriteFile ( String aData, String aFileFullName, CallbackAsyncComplete aCallback ) : void
aData String
aFileFullName String
aCallback CallbackAsyncComplete Delegate to run when the action completes. /// This is guaranteed to be run but may indicate an error
return void
        public void BeginWriteFile(String aData, String aFileFullName, CallbackAsyncComplete aCallback)
        {
            Invocation invocation = iService.Invocation(iActionWriteFile, aCallback);
            int inIndex = 0;
            invocation.AddInput(new ArgumentString((ParameterString)iActionWriteFile.InputParameter(inIndex++), aData));
            invocation.AddInput(new ArgumentString((ParameterString)iActionWriteFile.InputParameter(inIndex++), aFileFullName));
            iService.InvokeAction(invocation);
        }