Share via


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

Use this method to add a Commerce.IDictionary object containing targeting properties to the collection.

Definition

[Visual Basic .NET]

Public Sub Add( _ByValname As System.String, _
  ByValdictionary As System.Object _
) 

[C#]

public void Add(System.Stringname,
  System.Objectdictionary);

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.
  • dictionary
    The Dictionary object 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.
  • dictionary
    The Dictionary object to add. May not be null.

Remarks

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

Throws ArgumentException if the dictionary parameter is not a valid dictionary.

Requirements

Namespace: Microsoft.CommerceServer.Runtime.Targeting

Platforms: Windows 2000, Windows Server 2003

Assembly: Microsoft.CommerceServer.Runtime.dll

Copyright © 2005 Microsoft Corporation.
All rights reserved.