Click or drag to resize
MediaFileInfoGetUniqueNameWhereCondition Method
Constructs base where condition for checking column value uniqueness. Condition is modified to check name uniqueness on the file path. Name is unique if there is no other file with the same name in the same folder.

Namespace: CMS.MediaLibrary
Assembly: CMS.MediaLibrary (in CMS.MediaLibrary.dll) Version: 12.0.0
Syntax
C#
protected override WhereCondition GetUniqueNameWhereCondition(
	string columnName,
	string searchName,
	int currentObjectId,
	bool exactMatch
)

Parameters

columnName
Type: SystemString
Name of the column in which the uniqueness should be preserved (CodeNameColumn/DisplayNameColumn)
searchName
Type: SystemString
Name which should be saved in the column (evenutally with suffix)
currentObjectId
Type: SystemInt32
ID of the current object (this object will be excluded from the search for duplicate names)
exactMatch
Type: SystemBoolean
If true, the names must match exactly

Return Value

Type: WhereCondition
Where condition used to check for unique name
See Also