שתף באמצעות


ContentSelectionContext Constructor

Initializes a new instance of the ContentSelectionContext class.

Namespace:  Microsoft.CommerceServer.Runtime.Targeting
Assembly:  Microsoft.CommerceServer.Runtime (in Microsoft.CommerceServer.Runtime.dll)

Syntax

'Declaration
Public Sub New ( _
    name As String, _
    selectionPipeline As ContentSelectionPipeline, _
    eventPipeline As ContentSelectionPipeline, _
    cacheName As String, _
    redirectUrl As String, _
    expressionEvaluator As ExpressionEvaluator, _
    debugContext As DebugContext _
)
'Usage
Dim name As String
Dim selectionPipeline As ContentSelectionPipeline
Dim eventPipeline As ContentSelectionPipeline
Dim cacheName As String
Dim redirectUrl As String
Dim expressionEvaluator As ExpressionEvaluator
Dim debugContext As DebugContext

Dim instance As New ContentSelectionContext(name, selectionPipeline, _
    eventPipeline, cacheName, redirectUrl, _
    expressionEvaluator, debugContext)
public ContentSelectionContext(
    string name,
    ContentSelectionPipeline selectionPipeline,
    ContentSelectionPipeline eventPipeline,
    string cacheName,
    string redirectUrl,
    ExpressionEvaluator expressionEvaluator,
    DebugContext debugContext
)
public:
ContentSelectionContext(
    String^ name, 
    ContentSelectionPipeline^ selectionPipeline, 
    ContentSelectionPipeline^ eventPipeline, 
    String^ cacheName, 
    String^ redirectUrl, 
    ExpressionEvaluator^ expressionEvaluator, 
    DebugContext^ debugContext
)
public function ContentSelectionContext(
    name : String, 
    selectionPipeline : ContentSelectionPipeline, 
    eventPipeline : ContentSelectionPipeline, 
    cacheName : String, 
    redirectUrl : String, 
    expressionEvaluator : ExpressionEvaluator, 
    debugContext : DebugContext
)

Parameters

  • name
    Type: System..::.String
    Name of the ContentSelectionContext. May not be nullNothingnullptra null reference (Nothing in Visual Basic).
  • cacheName
    Type: System..::.String
    Name of the Cache that contains content for this selection application. May be nullNothingnullptra null reference (Nothing in Visual Basic).
  • redirectUrl
    Type: System..::.String
    Name of the Url to send events through for recording. May be nullNothingnullptra null reference (Nothing in Visual Basic).

Exceptions

Exception Condition
ArgumentNullException

Any of the required arguments were passed as nullNothingnullptra null reference (Nothing in Visual Basic).

Remarks

A ContentSelectionContext is a collection of name-value pairs.

Represents an application context for CSF (ContentSelectionFramework) content selection. For example, advertising and discounts each have their own ContentSelectionContext to specify things like the pipeline and cache that should be used by the ContentSelector object.

Permissions

See Also

Reference

ContentSelectionContext Class

ContentSelectionContext Members

Microsoft.CommerceServer.Runtime.Targeting Namespace