Click or drag to resize

LayoutMessageInitFields Method (LayoutMessage)

Sets the value of each field of the LayoutMessage to the value of its corresponding field in source.

Namespace:  OBCOM.NetSwitchLib.Layouts
Assembly:  OBCOM.NetSwitchLib (in OBCOM.NetSwitchLib.dll) Version: 1.48.7760.35650 (1.48.7760.35650)
Syntax
public void InitFields(
	LayoutMessage source
)

Parameters

source
Type: OBCOM.NetSwitchLib.LayoutsLayoutMessage
The LayoutMessage used as source of field values.
Remarks

Two fields are said to correspond if they have the same name and type.

If a field has no corresponding field in source, then its value is set to its default value.

If source is null or if source has no ayout, then this methods operates exactly as the InitFields method.

Nothing happens if this LayoutMessage does not have a Layout.

See Also