GetCampaignItem Method
Retrieves a CampaignItem, as identified by the Campaign's unique identifier.
Namespace: Microsoft.CommerceServer.Marketing.WebService
Assembly: Microsoft.CommerceServer.Marketing.DataManagement (in Microsoft.CommerceServer.Marketing.DataManagement.dll)
Syntax
'Declaration
<WebMethodAttribute> _
Public Overridable Function GetCampaignItem ( _
campaignItemId As Integer _
) As CampaignItemData
'Usage
Dim instance As MarketingWebService
Dim campaignItemId As Integer
Dim returnValue As CampaignItemData
returnValue = instance.GetCampaignItem(campaignItemId)
[WebMethodAttribute]
public virtual CampaignItemData GetCampaignItem(
int campaignItemId
)
[WebMethodAttribute]
public:
virtual CampaignItemData^ GetCampaignItem(
int campaignItemId
)
public function GetCampaignItem(
campaignItemId : int
) : CampaignItemData
Parameters
- campaignItemId
Type: System..::.Int32
Identifier of the CampaignItem to be retrieved.
Return Value
Type: CampaignItemData
The retrieved CampaignItem.
Exceptions
Exception | Condition |
---|---|
ArgumentOutOfRangeException | campaignItemId is less than zero. |
NotAuthorizedException | The user is not authorized to perform the requested operation. |
EntityStateException | The Campaign has been deleted. |
EntityDoesNotExistException | No Campaign exists with this campaignItemId. |
DatabaseIntegrityException | A serious integrity issue with the database exists. |
Remarks
Retrieves a specified Campaign Item.
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.