Partager via


Id Property

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

Gets the unique identifier of the current CampaignItem object.

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

Syntax

'Declaration
Public ReadOnly Property Id As Integer
'Usage
Dim instance As CampaignItem
Dim value As Integer

value = instance.Id
public int Id { get; }
public:
property int Id {
    int get ();
}
public function get Id () : int

Property Value

Type: System..::.Int32
The identifier of the current CampaignItem object. The default is 0.

Remarks

Gets the campaign item Id of this campaign item. The Id property will be assigned a value after the object is saved the first time. Until then the Id will have the default value of 0.

The Id property is also returned in the ToString method.

Permissions

See Also

Reference

CampaignItem Class

CampaignItem Members

Microsoft.CommerceServer.Marketing Namespace