QPR Knowledge Base 2019.1

LogOff

LogOff

Previous topic Next topic  

LogOff

Previous topic Next topic  

Revision history:

Introduced in QPR 8.0

 

Logs out an authenticated session, the ID of which is provided as a parameter for the function call.

 

Synopsis:

 

void LogOff(string sessionId)

 

Return Value:

 

None.

 

Parameters:

 

sessionId: String. ID of a previously authenticated session.

 

Example Procedure:

 

ServiceClient client = new ServiceClient("WSHttpBinding_IService");

string sessionId = client.Authenticate("qpr", "demo");

string xmlElement = client.QueryObjectsAsXml(sessionId, "[SC.1].SubObjects", "", "", "", "");

client.LogOff(sessionId);

client.Close();