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
- type
Type: Microsoft.CommerceServer.Marketing..::.CampaignItemType
The type of CampaignItem to create. May not be nullNothingnullptra null reference (Nothing in Visual Basic).
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
- 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.