Share via


TargetingProfileCollection.Add (String, Profile) Method (BCL)

Use this method to add a profile to the collection.

Definition

[Visual Basic .NET]

Public Sub Add( _ByValname As System.String, _
  ByValprofile As Profile _
) 

[C#]

public void Add(System.Stringname,
  Profileprofile);

Parameters

[Visual Basic .NET]

  • name
    The name of the profile. This must match the profile identifier portion of any expressions that are to evaluate against the profile. May not be null.
  • profile
    The profile to add. May not be null.

[C#]

  • name
    The name of the profile. This must match the profile identifier portion of any expressions that are to evaluate against the profile. May not be null.
  • profile
    The profile to add. May not be null.

Remarks

Throws ArgumentNullException if one of the required parameter values was null.

Requirements

Namespace: Microsoft.CommerceServer.Runtime.Targeting

Platforms: Windows 2000, Windows Server 2003

Assembly: Microsoft.CommerceServer.Runtime.dll

Copyright © 2005 Microsoft Corporation.
All rights reserved.