MessageSetDate Method (String, NullableDateTime) |
Changes the date value of the field identified by fieldName to the supplied value.
Namespace:
OBCOM.NetClient
Assembly:
OBCOM.NetClient (in OBCOM.NetClient.dll) Version: 40.82.5945.17884 (40.82.5945.17884)
Syntax public void SetDate(
string fieldName,
Nullable<DateTime> value
)
Public Sub SetDate (
fieldName As String,
value As Nullable(Of DateTime)
)
Parameters
- fieldName
- Type: SystemString
The name of the field. - value
- Type: SystemNullableDateTime
The new date value of the field.
Exceptions Exception | Condition |
---|
InvalidOperationException |
If the Message has no Layout, or if the required field is not defined in
the Layout of the Message.
|
Remarks
This method has the same effect as calling SetDate(fieldName,
0, value).
See Also