TestStateEvent Class
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 | |
---|---|---|
TestStateEvent() | Initializes an instance of the TestStateEvent class. | |
TestStateEvent(SerializationInfo, StreamingContext) | Initializes an instance of the TestStateEvent class by using the serialization information and context. | |
TestStateEvent(Guid, Guid, TestState) | Initializes an instance of the TestStateEvent class by using the provided run identifier, execution identifier, and state. | |
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 | |
---|---|---|
ExecId | Gets a Guid that uniquely identifies the execution process. | |
NewState | Gets the new setting for the test state. | |
RunId | Gets a Guid that uniquely identifies the test run. | |
Timestamp | Gets the date and time when the test state was changed. |
Top
Methods
Name | Description | |
---|---|---|
Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) | |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) | |
GetObjectData | Populates a SerializationInfo object with the data that is required to serialize the target object. (Overrides TestMessage.GetObjectData(SerializationInfo, StreamingContext).) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
IsValid | Returns a value that indicates whether the event has a valid RunId and a valid setting for NewState setting. (Overrides TestMessage.IsValid().) | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
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.