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.
Retrieves an existing Campaign, as identified by the Campaign's unique identifier.
Namespace: Microsoft.CommerceServer.Marketing
Assembly: Microsoft.CommerceServer.Marketing.CrossTierTypes (in Microsoft.CommerceServer.Marketing.CrossTierTypes.dll)
Syntax
'Declaration
Public Function GetCampaign ( _
campaignId As Integer _
) As Campaign
'Usage
Dim instance As CampaignManager
Dim campaignId As Integer
Dim returnValue As Campaign
returnValue = instance.GetCampaign(campaignId)
public Campaign GetCampaign(
int campaignId
)
public:
Campaign^ GetCampaign(
int campaignId
)
public function GetCampaign(
campaignId : int
) : Campaign
Parameters
- campaignId
Type: System..::.Int32
The Id of the campaign to retrieve. Must not be less than 1.
Return Value
Type: Microsoft.CommerceServer.Marketing..::.Campaign
The Campaign associated with the campaignId, retrieved from the database.
Exceptions
Exception | Condition |
---|---|
ArgumentOutOfRangeException | CampaignId is less than 1. |
EntityDoesNotExistException | The requested campaign does not exist. |
Remarks
Use this method to retrieve a specific Campaign object from the database.
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.