Share via


StateChangedEventArgs(T) Constructor (Boolean, T, T, Exception)

NOTE: This API is now obsolete.

Initializes a new instance of the class to be used for a normal state changed event.

Namespace:  Microsoft.Rtc.Signaling
Assembly:  Microsoft.Rtc.Collaboration (in Microsoft.Rtc.Collaboration.dll)

Syntax

'Declaration
<ObsoleteAttribute("This constructor is obsolete")> _
Public Sub New ( _
    methodResult As Boolean, _
    previousState As T, _
    state As T, _
    exception As Exception _
)
'Usage
Dim methodResult As Boolean
Dim previousState As T
Dim state As T
Dim exception As Exception

Dim instance As New StateChangedEventArgs(methodResult, _
    previousState, state, exception)
[ObsoleteAttribute("This constructor is obsolete")]
public StateChangedEventArgs(
    bool methodResult,
    T previousState,
    T state,
    Exception exception
)

Parameters

  • methodResult
    Type: System..::..Boolean
    true if the results of the state change are also reported as the result of a method call; otherwise false.
  • previousState
    Type: T
    The original state.
  • state
    Type: T
    The new state.
  • exception
    Type: System..::..Exception
    Thrown when an exception occurs that is associated with the state change.

Remarks

The caller should provide the old and new states to indicate the transition.

See Also

Reference

StateChangedEventArgs<(Of <(<'T>)>)> Class

StateChangedEventArgs<(Of <(<'T>)>)> Members

StateChangedEventArgs<(Of <(<'T>)>)> Overload

Microsoft.Rtc.Signaling Namespace