QPR Knowledge Base 2016.1

LogOff

LogOff

Previous topic Next topic No directory for this topic  

LogOff

Previous topic Next topic Topic directory requires JavaScript Mail us feedback on this 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();