Click or drag to resize
WebCrmApiEndSession Method
Terminates current session. Authentication performed with Authenticate method will not be valid any longer.

Namespace: dk.webCRM.ApiSync.WebService
Assembly: dk.webCRM.ApiSync.WebService (in dk.webCRM.ApiSync.WebService.dll) Version: 2.0.0.5 (2.0.0.5)
Syntax
public ErrorStatus EndSession()

Return Value

Type: ErrorStatus
Returns an error code: 0 if OK, and an error message if not OK.
Examples
TicketHeader ticket;
WebCrmApiSoapClient proxy = new WebCrmApiSoapClient();

// Login
ErrorStatus errorStatus1;
ticket = proxy.Authenticate("cm1111aaaaaa", "username", "password", out errorStatus1);

// Close the session
ErrorStatus errorStatus2 = Proxy.EndSession(ticket);
ticket = null;
See Also