Click or drag to resize
FileSystemRepositoryNamingProviderRegisterGetObjectIdentifier Method
Registers a function to be called when an object identifier for object of type objectType is needed. Based on returned object identifier a file or folder name is derived.

Namespace: CMS.ContinuousIntegration.Internal
Assembly: CMS.ContinuousIntegration (in CMS.ContinuousIntegration.dll) Version: 10.0.0
Syntax
C#
public static void RegisterGetObjectIdentifier(
	string objectType,
	Func<ExtendedTranslationReference, string, string> getObjectIdentifier
)

Parameters

objectType
Type: SystemString
Object type for which the function provides object identifier.
getObjectIdentifier
Type: SystemFuncExtendedTranslationReference, String, String
Function deriving object identifier from translation reference and/or default object identifier.
Remarks

When an object is being stored in the repository, a folder or file name is generated based on its object type and/or fields contained in translation reference. However, when the default object identifier is not suitable, it can be customized by registering a custom function.

The AdditionalFields contains fields defined in ObjectFileNameFields of given objectType.

See Also