Integer ParameterValidate(Int 32, String) Method
Validates the value sent against the specification of the parameter.
Definition
Namespace: CapeOpen
Assembly: CapeOpen (in CapeOpen.dll) Version: 1.0.0.0 (1.0.0.0)
True if the parameter is valid, false if not valid.
Assembly: CapeOpen (in CapeOpen.dll) Version: 1.0.0.0 (1.0.0.0)
C#
public bool Validate(
int value,
ref string message
)VB
Public Function Validate (
value As Integer,
ByRef message As String
) As BooleanParameters
- value Int32
- Integer value that will be validated against the parameter's current specification.
- message String
- Reference to a string that will conain a message regarding the validation of the parameter.
Return Value
BooleanTrue if the parameter is valid, false if not valid.
Implements
ICapeIntegerParameterSpecValidate(Int32, String)Remarks
The parameter is considered valid if the current value is between
the upper and lower bound. The message is used to return the reason
that the parameter is invalid.
Exceptions
| ECapeUnknown | The error to be raised when other error(s), specified for this operation, are not suitable. |
| ECapeInvalidArgument | To be used when an invalid argument value is passed, for example, an unrecognised Compound identifier or UNDEFINED for the props argument. |