A Sandcastle Documented Class Library

# ICallerContextService CreateAndSetCurrentContext Method

Creates a new context object and associates it with the current caller.

Namespace: Dundas.BI
Assembly: Dundas.BI.Core (in Dundas.BI.Core.dll) Version: 2.0.0.0 (10.0.0.1002)
Syntax
C#
VB
C++
F#
Copy

    CallerContext CreateAndSetCurrentContext(
    	Guid? sessionId
    )

    Function CreateAndSetCurrentContext (
    	sessionId As Guid?
    ) As CallerContext

    CallerContext^ CreateAndSetCurrentContext(
    	Nullable<Guid> sessionId
    )

    abstract CreateAndSetCurrentContext :
            sessionId : Nullable<Guid> -> CallerContext

#### Parameters

sessionId
  Type: System
  Nullable
  Guid
  The ID of the session to be associated with the caller; or
  to indicate that no session should be associated.

#### Return Value

Type: CallerContext
The object representing the current caller context.
Exceptions

Exception | Condition
--- | ---
ArgumentException | sessionId is Empty.

See Also

#### Reference

ICallerContextService Interface
Dundas.BI Namespace