ErrorManagerGetItem Method (ConnectionId, SessionId, Int32) Content Studio 5.7 SDK
Content Studio Web Content Management System

[This is preliminary documentation and is subject to change.]

Returns detailed information for a certain Content Studio event log entry

Namespace: ContentStudio
Assembly: CSServer5 (in CSServer5.dll) Version: 5.7.5016.0 (5.7.5016.0)
Syntax

public string GetItem(
	ConnectionId connectionId,
	SessionId sessionId,
	int index
)

Parameters

connectionId
Type: ContentStudioConnectionId
A value that identifies the web site
sessionId
Type: ContentStudio.SecuritySessionId
A value that identifies the user's session. This value usually originates from a call to OpenSession(ConnectionId).
index
Type: SystemInt32
The index of the entry to return. This entry must exists and must be connected to the actual site.

Return Value

Type: String
Xml
Examples

<root>
  <entries>
    <entry index="integer"
           level="integer"
           eventid="integer"
           connectionid="short"
           generated="sortable datetime value"
           written="sortable datetime value"
           message="string"
           machinename="string"
           source="string"
           data="base-64 encoded binary value"      
      />
  </entries>
</root>
Element/attributeTypeDescription
/root/entries/entryAn element representing one single log entry
/root/entries/entry@indexintegerThe entry index
/root/entries/entry@levelintegerThe level (severity) of the entry. See list below for the meaning of this value.
/root/entries/entry@eventidintegerGets the resource identifier that designates the message text of the event entry.
/root/entries/entry@connectionidshortA value that identifies the web site
/root/entries/entry@generatedintegerGets the local time at which this event was generated.
/root/entries/entry@writtenintegerGets the local time at which this event was written to the log.
/root/entries/entry@messagestringGets the localized message associated with this event entry.
/root/entries/entry@machinenamestringGets the name of the computer on which this entry was generated.
/root/entries/entry@sourcestringGets the name of the application that generated this event.
/root/entries/entry@datastringBase-64 encoded binary data associated with the entry.

The level attribute can be one of the following numeric values

  • 1 - Error
  • 2 - Warning
  • 3 - Information
  • 4 - Success audit
  • 5 - Failed audit
See Also

Reference