Open this page in the API Guide

ISessionService.SetSessionCustomAttributes Method

Sets the values of custom attributes on a session.

Namespace:  Dundas.BI.AccountServices
Assembly:  Dundas.BI.Core (in Dundas.BI.Core.dll) Version: 2.0.0.0 (25.1.0.1000)
Syntax
void SetSessionCustomAttributes(
	Guid sessionId,
	IDictionary<Guid, CustomAttributeValue> attributeValues
)

Parameters

sessionId
Type: System.Guid
The ID of the session.
attributeValues
Type: System.Collections.Generic.IDictionary<Guid, CustomAttributeValue>
The attribute values.
Exceptions
ExceptionCondition
ArgumentExceptionsessionId is Empty.
NoPrivilegeExceptionThe caller does not have system administrator privileges.
InvalidSessionExceptionThe caller context is not associated with a valid session.
Remarks

attributeValues is a collection of CustomAttributeValue objects, keyed by attribute ID, which will be added to the specified session. To clear the value of an attribute, specify null as the value for the dictionary entry corresponding to that attribute.

If the specified session was not found, this method will exit without error. If one of the specified attribute IDs does not correspond to a registered custom attribute, that value will be ignored.

See Also