WebCrmApiEndSession Method |
Terminates current session.
Authentication performed with Authenticate method will not be valid any longer.
Namespace: dk.webCRM.ApiSync.WebServiceAssembly: dk.webCRM.ApiSync.WebService (in dk.webCRM.ApiSync.WebService.dll) Version: 2.0.0.5 (2.0.0.5)
Syntaxpublic ErrorStatus EndSession()
Public Function EndSession As ErrorStatus
public:
ErrorStatus^ EndSession()
member EndSession : unit -> ErrorStatus
Return Value
Type:
ErrorStatusReturns an error code: 0 if OK, and an error message if not OK.
ExamplesTicketHeader ticket;
WebCrmApiSoapClient proxy = new WebCrmApiSoapClient();
ErrorStatus errorStatus1;
ticket = proxy.Authenticate("cm1111aaaaaa", "username", "password", out errorStatus1);
ErrorStatus errorStatus2 = Proxy.EndSession(ticket);
ticket = null;
See Also