Share via


RunStateEvent Constructors

Definition

Overloads

RunStateEvent()

Initializes a new instance of the RunStateEvent class.

RunStateEvent(SerializationInfo, StreamingContext)

Initializes a new instance of the RunStateEvent class from XML by using the provided information and context.

RunStateEvent(Guid, RunState, String)

Initializes a new instance of the RunStateEvent class by using the provided test run ID, state, and computer name.

RunStateEvent(Guid, RunState, String, DateTime)

Initializes a new instance of the RunStateEvent class by using the provided test run ID, state, computer name, and time stamp.

RunStateEvent()

Initializes a new instance of the RunStateEvent class.

protected:
 RunStateEvent();
protected RunStateEvent ();
Protected Sub New ()

Applies to

RunStateEvent(SerializationInfo, StreamingContext)

Initializes a new instance of the RunStateEvent class from XML by using the provided information and context.

protected:
 RunStateEvent(System::Runtime::Serialization::SerializationInfo ^ info, System::Runtime::Serialization::StreamingContext context);
protected RunStateEvent (System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);
new Microsoft.VisualStudio.TestTools.Common.RunStateEvent : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> Microsoft.VisualStudio.TestTools.Common.RunStateEvent
Protected Sub New (info As SerializationInfo, context As StreamingContext)

Parameters

Applies to

RunStateEvent(Guid, RunState, String)

Initializes a new instance of the RunStateEvent class by using the provided test run ID, state, and computer name.

public:
 RunStateEvent(Guid runId, Microsoft::VisualStudio::TestTools::Common::RunState newState, System::String ^ computer);
public RunStateEvent (Guid runId, Microsoft.VisualStudio.TestTools.Common.RunState newState, string computer);
new Microsoft.VisualStudio.TestTools.Common.RunStateEvent : Guid * Microsoft.VisualStudio.TestTools.Common.RunState * string -> Microsoft.VisualStudio.TestTools.Common.RunStateEvent
Public Sub New (runId As Guid, newState As RunState, computer As String)

Parameters

runId
Guid

The GUID for the associated test run.

newState
RunState

One of the RunState values.

computer
String

The name of the computer that requested the state change.

Applies to

RunStateEvent(Guid, RunState, String, DateTime)

Initializes a new instance of the RunStateEvent class by using the provided test run ID, state, computer name, and time stamp.

public:
 RunStateEvent(Guid runId, Microsoft::VisualStudio::TestTools::Common::RunState newState, System::String ^ computer, DateTime timestamp);
public RunStateEvent (Guid runId, Microsoft.VisualStudio.TestTools.Common.RunState newState, string computer, DateTime timestamp);
new Microsoft.VisualStudio.TestTools.Common.RunStateEvent : Guid * Microsoft.VisualStudio.TestTools.Common.RunState * string * DateTime -> Microsoft.VisualStudio.TestTools.Common.RunStateEvent
Public Sub New (runId As Guid, newState As RunState, computer As String, timestamp As DateTime)

Parameters

runId
Guid

The GUID for the associated test run.

newState
RunState

One of the RunState values.

computer
String

The name of the computer that requested the state change.

timestamp
DateTime

The date and time of the request for state change.

Applies to