Represents a request to change the state of a test run.
Inheritance Hierarchy
Object
  Microsoft.VisualStudio.TestTools.Common.TestMessage
    Microsoft.VisualStudio.TestTools.Common.RunStateEvent
Namespace:  Microsoft.VisualStudio.TestTools.Common
Assembly:  Microsoft.VisualStudio.QualityTools.Common (in Microsoft.VisualStudio.QualityTools.Common.dll)
Syntax
'Declaration
<SerializableAttribute> _
Public Class RunStateEvent _
    Inherits TestMessage _
    Implements ISerializable
[SerializableAttribute]
public class RunStateEvent : TestMessage, 
    ISerializable
[SerializableAttribute]
public ref class RunStateEvent : public TestMessage, 
    ISerializable
[<SerializableAttribute>]
type RunStateEvent =  
    class 
        inherit TestMessage 
        interface ISerializable 
    end
public class RunStateEvent extends TestMessage implements ISerializable
The RunStateEvent type exposes the following members.
Constructors
| Name | Description | |
|---|---|---|
| .gif) | RunStateEvent() | Initializes a new instance of the RunStateEvent class. | 
| .gif) | RunStateEvent(SerializationInfo, StreamingContext) | Initializes a new instance of the RunStateEvent class from XML by using the provided information and context. | 
| .gif) | RunStateEvent(Guid, RunState, String) | Initializes a new instance of the RunStateEvent class by using the provided test run ID, state, and computer name. | 
| .gif) | 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. | 
Top
Properties
| Name | Description | |
|---|---|---|
| .gif) | Computer | Gets the name of the computer that requested the change in run state. | 
| .gif) | NewState | Gets the new setting for the run state. | 
| .gif) | RunId | Gets the ID of the test run. | 
| .gif) | Timestamp | Gets the date and time of the request to change the run state. | 
Top
Methods
| Name | Description | |
|---|---|---|
| .gif) | Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) | 
| .gif) | Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | 
| .gif) | GetHashCode | Serves as the default hash function. (Inherited from Object.) | 
| .gif) | GetObjectData | Populates a SerializationInfo by using the data that is required to serialize the target object. (Overrides TestMessage.GetObjectData(SerializationInfo, StreamingContext).) | 
| .gif) | GetType | Gets the Type of the current instance. (Inherited from Object.) | 
| .gif) | IsValid | Returns a value that indicates whether the request to change the run state is valid. (Overrides TestMessage.IsValid().) | 
| .gif) | MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | 
| .gif) | ToString | Returns a string representation of this request to change the run state. (Overrides Object.ToString.) | 
Top
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.