Partilhar via


SelectionContexts Property

For the latest version of Commerce Server 2007 Help, see the Microsoft Web site.

Gets the collection of configured ContentSelectionContext objects.

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

Syntax

'Declaration
Public ReadOnly Property SelectionContexts As ContentSelectionContextCollection
'Usage
Dim instance As TargetingSystemInfo
Dim value As ContentSelectionContextCollection

value = instance.SelectionContexts
public ContentSelectionContextCollection SelectionContexts { get; }
public:
property ContentSelectionContextCollection^ SelectionContexts {
    ContentSelectionContextCollection^ get ();
}
public function get SelectionContexts () : ContentSelectionContextCollection

Property Value

Type: Microsoft.CommerceServer.Runtime.Targeting..::.ContentSelectionContextCollection
The ContentSelectionContextCollection collection of configured ContentSelectionContext objects.

Remarks

The value will be nullNothingnullptra null reference (Nothing in Visual Basic) if the CommerceContentSelectionModule is not configured in web.config. The caller should always check this property for a nullNothingnullptra null reference (Nothing in Visual Basic) value before referencing it.

Permissions

See Also

Reference

TargetingSystemInfo Class

TargetingSystemInfo Members

Microsoft.CommerceServer.Runtime.Targeting Namespace