Microsoft.Protocols.TestSuites.MS_OXORULE.NspiMapiHttpAdapter.Unbind C# (CSharp) Method

Unbind() public method

The NspiUnbind method destroys the context handle. No other action is taken.
public Unbind ( uint reserved ) : uint
reserved uint A DWORD [MS-DTYP] value reserved for future use. This property is ignored by the server.
return uint
        public uint Unbind(uint reserved)
        {
            uint result;
            UnbindRequestBody unbindRequest = this.BuildUnbindRequestBody();
            ChunkedResponse chunkedResponse = this.SendAddressBookRequest(unbindRequest, RequestType.Unbind);
            AdapterHelper.SessionContextCookies = new CookieCollection();
            UnbindResponseBody unbindResponseBody = UnbindResponseBody.Parse(chunkedResponse.ResponseBodyRawData);
            result = unbindResponseBody.ErrorCode;

            return result;
        }