ErrorManagerGetItem Method (ConnectionId, SessionId, Int32, Int32, String) 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,
	out int status,
	out string statusText
)

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.
status
Type: SystemInt32
An integer indicating result of the call. Zero is success.
statusText
Type: SystemString
The textual representation of the call result.

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
Remarks

This is the backwards compatible implementation of this method. This implementation does not throw any exceptions, instead callers must examine the outcome of the call in the Status and StatusText output parameters.
See Also

Reference