Delen via


Profiles Property

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

Gets a collection of profiles to use for targeting during the execution of the pipeline.

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

Syntax

'Declaration
Public ReadOnly Property Profiles As TargetingProfileCollection
'Usage
Dim instance As PipelineInfo
Dim value As TargetingProfileCollection

value = instance.Profiles
public TargetingProfileCollection Profiles { get; }
public:
property TargetingProfileCollection^ Profiles {
    TargetingProfileCollection^ get ();
}
public function get Profiles () : TargetingProfileCollection

Property Value

Type: Microsoft.CommerceServer.Runtime.Targeting..::.TargetingProfileCollection
A TargetingProfileCollection containing a collection of profiles to use for targeting.

Remarks

Gets a collection of profiles to use for targeting during the execution of the pipeline.

Examples

This example shows how to target both the User profile and TargetingContext profile:

CommerceContext ctx = CommerceContext.Current;
pipeInfo = new PipelineInfo("basket")
pipeInfo.Profiles.Add("User", ctx.UserProfile);
pipeInfo.Profiles.Add("TargetingContext",
ctx.TargetingSystem.TargetingContextProfile);

Permissions

See Also

Reference

PipelineInfo Class

PipelineInfo Members

Microsoft.CommerceServer.Runtime.Orders Namespace