Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.