RunStateEvent Class

Definition

Represents a request to change the state of a test run.

public ref class RunStateEvent : Microsoft::VisualStudio::TestTools::Common::TestMessage, System::Runtime::Serialization::ISerializable
[System.Serializable]
public class RunStateEvent : Microsoft.VisualStudio.TestTools.Common.TestMessage, System.Runtime.Serialization.ISerializable
[<System.Serializable>]
type RunStateEvent = class
    inherit TestMessage
    interface ISerializable
Public Class RunStateEvent
Inherits TestMessage
Implements ISerializable
Inheritance
RunStateEvent
Attributes
Implements

Constructors

RunStateEvent()

Initializes a new instance of the RunStateEvent class.

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(SerializationInfo, StreamingContext)

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

Properties

Computer

Gets the name of the computer that requested the change in run state.

NewState

Gets the new setting for the run state.

RunId

Gets the ID of the test run.

Timestamp

Gets the date and time of the request to change the run state.

Methods

GetObjectData(SerializationInfo, StreamingContext)
IsValid()

Returns a value that indicates whether the request to change the run state is valid.

ToString()

Returns a string representation of this request to change the run state.

Applies to