RunStateEvent Class
Represents a request to change the state of a test run.
Inheritance Hierarchy
System.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 | |
---|---|---|
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. |
Top
Properties
Name | Description | |
---|---|---|
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. |
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 by using 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 request to change the run state is valid. (Overrides TestMessage.IsValid().) | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
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.