GetSearchClauseFactory Method (DataSet, String)
Creates a new validating SearchClauseFactory object that can be used to build search clauses for the profile system.
Namespace: Microsoft.CommerceServer.Profiles
Assembly: Microsoft.CommerceServer.Profiles.CrossTierTypes (in Microsoft.CommerceServer.Profiles.CrossTierTypes.dll)
Syntax
'Declaration
Public Function GetSearchClauseFactory ( _
searchableEntities As DataSet, _
entityName As String _
) As SearchClauseFactory
'Usage
Dim instance As ProfileManagementContext
Dim searchableEntities As DataSet
Dim entityName As String
Dim returnValue As SearchClauseFactory
returnValue = instance.GetSearchClauseFactory(searchableEntities, _
entityName)
public SearchClauseFactory GetSearchClauseFactory(
DataSet searchableEntities,
string entityName
)
public:
SearchClauseFactory^ GetSearchClauseFactory(
DataSet^ searchableEntities,
String^ entityName
)
public function GetSearchClauseFactory(
searchableEntities : DataSet,
entityName : String
) : SearchClauseFactory
Parameters
- searchableEntities
Type: System.Data..::.DataSet
A DataSet describing the entities that can be searched in the profile system, retrieved from the GetSearchableEntities method.
- entityName
Type: System..::.String
Name of the profile definition that will be the target of the SearchClause objects created by the returned SearchClauseFactory.
Return Value
Type: Microsoft.CommerceServer..::.SearchClauseFactory
A validating SearchClauseFactory object.
Remarks
The SearchClauseFactory constructed will validate that SearchClause objects created are valid. If an attempt is made to create an invalid search clause, an exception will be raised from the SearchClauseFactory.
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.
See Also
Reference
ProfileManagementContext Class
ProfileManagementContext Members