ISessionServiceSetSessionCustomAttributes 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 (24.1.0.1001)
Syntax
void SetSessionCustomAttributes(
	Guid sessionId,
	IDictionary<Guid, CustomAttributeValue> attributeValues
)

Parameters

sessionId
Type: SystemGuid
The ID of the session.
attributeValues
Type: System.Collections.GenericIDictionaryGuid, 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 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