RawReasonCode Constructor
- Last UpdatedNov 06, 2025
- 1 minute read
Initializes a new instance of the RawReasonCode class.
'Declaration
Public Function New( _
ByVal name As String, _
ByVal defaultReasonId As Integer, _
ByVal prompt As Boolean _
)
'Usage
Dim name As String
Dim defaultReasonId As Integer
Dim prompt As Boolean
Dim instance As New RawReasonCode(name, defaultReasonId, prompt)
Parameters
- name
- Required. The name of the raw reason code.
- defaultReasonId
- Required. Holds the code of the default reason for this raw reason code.
- prompt
- Optional. Holds a flag that, if set to true, specifies that there will be a user prompt to select the reason for the raw reason code from a list of allowable reasons. The default is false.
Observe the following input parameter rules:
- Required non-DB* parameters: Must pass a value. Cannot be empty or null.
- Optional non-DB* parameters: Either enter a value or pass a null. If passing a null and a default value has been defined, the default value will be used for the parameter.
The following properties can also be passed:
- UtilizationReasonLinks: A list of the IDs of allowable utilization reasons from which a user can select, when prompted, as the reason for the raw reason code.
- LastEditComment: A comment about the instantiation of the raw reason.