A class indicates the Unbind request type.
Inheritance: AddressBookRequestBodyBase
        /// <summary>
        /// This method is used by the client to delete a Session Context with the Address Book Server.
        /// </summary>
        /// <param name="unbindRequestBody">The unbind request type request body.</param>
        /// <returns>The response body of unbind request type.</returns>
        public UnbindResponseBody Unbind(UnbindRequestBody unbindRequestBody)
        {
            CommonResponse commonResponse = this.SendAddressBookRequest(unbindRequestBody, RequestType.Unbind);

            AdapterHelper.SessionContextCookies = new CookieCollection();
            UnbindResponseBody unbindResponseBody = UnbindResponseBody.Parse(commonResponse.ResponseBodyRawData);

            this.VerifyUnbindResponseBody(unbindResponseBody);

            return(unbindResponseBody);
        }
        /// <summary>
        /// Initialize the unbind request body.
        /// </summary>
        /// <returns>The Unbind request body</returns>
        private UnbindRequestBody BuildUnbindRequestBody()
        {
            UnbindRequestBody unbindRequest = new UnbindRequestBody();
            unbindRequest.Reserved = 0x00000000;
            byte[] auxIn = new byte[] { };
            unbindRequest.AuxiliaryBuffer = auxIn;
            unbindRequest.AuxiliaryBufferSize = (uint)auxIn.Length;

            return unbindRequest;
        }
 /// <summary>
 /// Destroy the session between the client and the server.
 /// </summary>
 private void Unbind()
 {
     UnbindRequestBody unbindRequest = new UnbindRequestBody();
     unbindRequest.Reserved = 0x00000000;
     byte[] auxIn = new byte[] { };
     unbindRequest.AuxiliaryBuffer = auxIn;
     unbindRequest.AuxiliaryBufferSize = (uint)auxIn.Length;
     UnbindResponseBody unbindResponseBody = this.Adapter.Unbind(unbindRequest);
     Site.Assert.AreEqual<uint>((uint)1, unbindResponseBody.ErrorCode, "Unbind method should succeed and the expected value is 1. The return value is {0}.", unbindResponseBody.ErrorCode);
 }
 /// <summary>
 /// This method is used by the client to delete a Session Context with the Address Book Server.
 /// </summary>
 /// <param name="unbindRequestBody">The unbind request type request body.</param>
 /// <returns>The response body of unbind request type.</returns>
 public UnbindResponseBody Unbind(UnbindRequestBody unbindRequestBody)
 {
     CommonResponse commonResponse = this.SendAddressBookRequest(unbindRequestBody, RequestType.Unbind);
     AdapterHelper.SessionContextCookies = new CookieCollection();
     UnbindResponseBody unbindResponseBody = UnbindResponseBody.Parse(commonResponse.ResponseBodyRawData);
     this.VerifyUnbindResponseBody(unbindResponseBody);
  
     return unbindResponseBody;
 }