Dart.Snmp Namespace > ComponentBase Class > Marshal Method : Marshal(String,Object) Method |
Dim instance As ComponentBase Dim message As String Dim state As Object instance.Marshal(message, state)
Used to marshal a string and/or object from a worker thread to the UI thread for typical display purposes. It calls OnUserState, which raises the UserState event.
See the SynchronizingObject property for information on updating UI controls in your event handler. Internally, SynchronizingObject.BeginInvoke is used to marshal data when the SynchronizingObject is not null, and Delegate.DynamicInvoke is used when SynchronizingObject is null. This method is provided for convenience; the developer may use alternative methods for marshaling data as required.