GetSearchClauseFactory Method (CampaignItemType)

Creates a new search clause factory for objects of a specific CampaignItem type.

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

Syntax

'Declaration
Public Function GetSearchClauseFactory ( _
    type As CampaignItemType _
) As SearchClauseFactory
'Usage
Dim instance As CampaignItemManager
Dim type As CampaignItemType
Dim returnValue As SearchClauseFactory

returnValue = instance.GetSearchClauseFactory(type)
public SearchClauseFactory GetSearchClauseFactory(
    CampaignItemType type
)
public:
SearchClauseFactory^ GetSearchClauseFactory(
    CampaignItemType type
)
public function GetSearchClauseFactory(
    type : CampaignItemType
) : SearchClauseFactory

Parameters

Return Value

Type: Microsoft.CommerceServer..::.SearchClauseFactory
A new SearchClauseFactory object.

Exceptions

Exception Condition
ArgumentException

campaignItemType is not a CampaignItem.

ArgumentNullException

campaignItemType is nullNothingnullptra null reference (Nothing in Visual Basic).

Remarks

Initializes a new instance of MarketingSearchClauseFactory that is configured to search a specific type of MarketingContext entity.

The returned SearchClauseFactory allows you to filter sub-system searches.

Permissions

See Also

Reference

CampaignItemManager Class

CampaignItemManager Members

GetSearchClauseFactory Overload

Microsoft.CommerceServer.Marketing Namespace