Click or drag to resize

ReferenceGeneratorGenerateItemReference Method (PFContentType, PFField, String, Int32, Decimal, Int64)

Generates the next reference, based on year, content-type and index.

Namespace:  Packflow.Core
Assembly:  MicaSystems.Packflow.Core (in MicaSystems.Packflow.Core.dll) Version: 1.0.0.0 (3.2.0.306)
Syntax
C#
public static string GenerateItemReference(
	PFContentType contentType,
	PFField refField,
	string prefix,
	int indexLength = 4,
	[OptionalAttribute] decimal initialVersionNo,
	long applicationContextId = -1
)

Parameters

contentType
Type: Packflow.CorePFContentType
refField
Type: Packflow.CorePFField
prefix
Type: SystemString
indexLength (Optional)
Type: SystemInt32
initialVersionNo (Optional)
Type: SystemDecimal
applicationContextId (Optional)
Type: SystemInt64

Return Value

Type: String
The generated reference
See Also