| SequenceExtensionGenerateNextValue Method |
This is called when next number should be generated and reserved.
Namespace: CTExtensions.InterfacesAssembly: CTInterface (in CTInterface.dll)
Syntax public abstract string GenerateNextValue(
CTProject poActiveProject,
string bsDependentPropVal,
out string pbsExternalID
)
Public MustOverride Function GenerateNextValue (
poActiveProject As CTProject,
bsDependentPropVal As String,
<OutAttribute> ByRef pbsExternalID As String
) As String
Parameters
- poActiveProject
- Type: CTProject
Currently active CUSTOMTOOLS project. This can be used to generate
a project specific number. This may be null for instance in the Options. - bsDependentPropVal
- Type: SystemString
Value of the dependent custom property whose ID you have provided
in the GetDependentPropertyID method. Empty if you haven't requested any property value. - pbsExternalID
- Type: SystemString
Specify ID for the sequence you generated. This is passed to Rollback method if
user later on cancels number generation and we should release the number to be re-used.
Return Value
Type:
StringFormatted serial number
See Also