Class RVUserContext
Default implementation of the IRVUserContext interface.
Inheritance
System.Object
RVUserContext
Namespace: Reveal.Sdk
Assembly: Infragistics.Reveal.SDK.Server.dll
Syntax
public class RVUserContext : Object, IRVUserContext, IRequestContext
Constructors
RVUserContext(String)
Creates a new RVUserContext with the given user ID and no additional properties.
Declaration
public RVUserContext(string userId)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | userId | A string that uniquely identifies the user. |
RVUserContext(String, Dictionary<String, Object>)
Creates a new RVUserContext with the given user ID and a map of additional properties.
Declaration
public RVUserContext(string userId, Dictionary<string, object> properties)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | userId | A string that uniquely identifies the user. |
| System.Collections.Generic.Dictionary<System.String, System.Object> | properties | An optional map of additional properties associated with the user. |
Properties
Properties
Returns the map of additional properties associated with this user context.
Declaration
public Dictionary<string, object> Properties { get; }
Property Value
| Type | Description |
|---|---|
| System.Collections.Generic.Dictionary<System.String, System.Object> |
UserId
Returns the userId for this context.
Declaration
public string UserId { get; }
Property Value
| Type | Description |
|---|---|
| System.String |
Methods
GetProperty(String)
Returns the value for the given property or null if no property with that name is found.
Declaration
public object GetProperty(string name)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | Name of the property to return the value for. |
Returns
| Type | Description |
|---|---|
| System.Object | Property for the given key name. |