| LayoutMessageSetDate Method (String, NullableDateTime) |
Changes the date value of the field identified by name to the supplied value.
Namespace:
OBCOM.NetSwitchLib.Layouts
Assembly:
OBCOM.NetSwitchLib (in OBCOM.NetSwitchLib.dll) Version: 1.48.7760.35650 (1.48.7760.35650)
Syntax public void SetDate(
string name,
Nullable<DateTime> value
)
Public Sub SetDate (
name As String,
value As Nullable(Of DateTime)
)
Parameters
- name
- Type: SystemString
The name of the field.
- value
- Type: SystemNullableDateTime
The new date value of the field.
Exceptions Exception | Condition |
---|
InvalidOperationException |
If this LayoutMessage has no Layout, or if the required field
is not defined in the Layout of this LayoutMessage.
|
Remarks
If
value is
null then the field's data is
set to
NULL (see
IsNull
for more details).
See Also