Represents a notification record for a change in test state.
Inheritance Hierarchy
Object
  Microsoft.VisualStudio.TestTools.Common.TestMessage
    Microsoft.VisualStudio.TestTools.Common.TestStateEvent
Namespace:  Microsoft.VisualStudio.TestTools.Common
Assembly:  Microsoft.VisualStudio.QualityTools.Common (in Microsoft.VisualStudio.QualityTools.Common.dll)
Syntax
'Declaration
<SerializableAttribute> _
Public Class TestStateEvent _
    Inherits TestMessage _
    Implements ISerializable
[SerializableAttribute]
public class TestStateEvent : TestMessage, 
    ISerializable
[SerializableAttribute]
public ref class TestStateEvent : public TestMessage, 
    ISerializable
[<SerializableAttribute>]
type TestStateEvent =  
    class 
        inherit TestMessage 
        interface ISerializable 
    end
public class TestStateEvent extends TestMessage implements ISerializable
The TestStateEvent type exposes the following members.
Constructors
| Name | Description | |
|---|---|---|
| .gif) | TestStateEvent() | Initializes an instance of the TestStateEvent class. | 
| .gif) | TestStateEvent(SerializationInfo, StreamingContext) | Initializes an instance of the TestStateEvent class by using the serialization information and context. | 
| .gif) | TestStateEvent(Guid, Guid, TestState) | Initializes an instance of the TestStateEvent class by using the provided run identifier, execution identifier, and state. | 
| .gif) | TestStateEvent(Guid, Guid, TestState, DateTime) | Initializes an instance of the TestStateEvent class by using the provided run identifier, execution identifier, state, and time stamp. | 
Top
Properties
| Name | Description | |
|---|---|---|
| .gif) | ExecId | Gets a Guid that uniquely identifies the execution process. | 
| .gif) | NewState | Gets the new setting for the test state. | 
| .gif) | RunId | Gets a Guid that uniquely identifies the test run. | 
| .gif) | Timestamp | Gets the date and time when the test state was changed. | 
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 object with 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 event has a valid RunId and a valid setting for NewState setting. (Overrides TestMessage.IsValid().) | 
| .gif) | MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | 
| .gif) | ToString | Returns a string that contains the computer name, the RunId, and the NewState. (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.