QPR Knowledge Base 2015.1

GetAttributeAsString

GetAttributeAsString

Previous topic Next topic No directory for this topic  

GetAttributeAsString

Previous topic Next topic Topic directory requires JavaScript Mail us feedback on this topic!  

Revision history:

Introduced in QPR 8.0

 

Gets of a single attribute from an object defined in the function call.

 

Synopsis:

 

string GetAttributeAsString(string sessionId, string objectId, string attribute, string options)

 

Return Value:

 

Attribute value as string.

 

Parameters:

 

sessionId: String. ID of an authenticated session.

objectId: String. ID of an object from which the attribute is fetched.

attribute: String. Name of the attribute that is queried. See Supported attributes.

options: String. Additional options for the query.

 

Example Procedure:

 

ServiceClient client = new ServiceClient("WSHttpBinding_IService");

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

String attribute = client.GetAttributeAsString(sessionId, "PG.67890.5343", "description", "");

MessageBox.Show("Element description: " + attribute);

client.Close();