OpenHome.Net.ControlPoint.Invocation.OutputString C# (CSharp) Method

OutputString() public static method

Utility to retrieve the value of a string type output argument
Must only be called once per output argument. (The first call extracts the string data from the underlying native object so later calls would return an empty string.)
public static OutputString ( IntPtr aHandle, uint aIndex ) : String
aHandle System.IntPtr Invocation handle
aIndex uint Zero-based index into array of output arguments. /// Must refer to an ArgumentString.
return String
        public static String OutputString(IntPtr aHandle, uint aIndex)
        {
            IntPtr ptr;
            uint len;
            CpInvocationGetOutputString(aHandle, aIndex, out ptr, out len);
            String str = InteropUtils.PtrToStringUtf8(ptr, len);
            OhNetFree(ptr);
            return str;
        }