Partager via


Name Property

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

Gets or sets the name of the current CampaignItem object.

Namespace:  Microsoft.CommerceServer.Marketing
Assembly:  Microsoft.CommerceServer.Marketing.CrossTierTypes (in Microsoft.CommerceServer.Marketing.CrossTierTypes.dll)

Syntax

'Declaration
Public Property Name As String
'Usage
Dim instance As CampaignItem
Dim value As String

value = instance.Name

instance.Name = value
public string Name { get; set; }
public:
property String^ Name {
    String^ get ();
    void set (String^ value);
}
public function get Name () : String
public function set Name (value : String)

Property Value

Type: System..::.String
The name of the current CampaignItem object. Default value is string.empty.

Exceptions

Exception Condition
StringLengthValidationException

An attempt was made to set Name to either an empty string or a name that exceeded the maximum permissible length.

PropertyNullValidationException

An attempt was made to set Name to nullNothingnullptra null reference (Nothing in Visual Basic).

Remarks

Name may not exceed 50 characters. Leading and trailing whitespace is removed. Name must be unique within the scope of the containing Campaign. This constraint is checked when Save is called.

The Name property is also returned in the ToString method.

Permissions

See Also

Reference

CampaignItem Class

CampaignItem Members

Microsoft.CommerceServer.Marketing Namespace