Поделиться через


TestStateEvent Class

Represents a notification record for a change in test state.

Inheritance Hierarchy

System.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
Protected method TestStateEvent() Initializes an instance of the TestStateEvent class.
Protected method TestStateEvent(SerializationInfo, StreamingContext) Initializes an instance of the TestStateEvent class by using the serialization information and context.
Public method TestStateEvent(Guid, Guid, TestState) Initializes an instance of the TestStateEvent class by using the provided run identifier, execution identifier, and state.
Public method 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
Public property ExecId Gets a Guid that uniquely identifies the execution process.
Public property NewState Gets the new setting for the test state.
Public property RunId Gets a Guid that uniquely identifies the test run.
Public property Timestamp Gets the date and time when the test state was changed.

Top

Methods

  Name Description
Public method Equals Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public method GetHashCode Serves as a hash function for a particular type. (Inherited from Object.)
Public method GetObjectData Populates a SerializationInfo object with the data that is required to serialize the target object. (Overrides TestMessage.GetObjectData(SerializationInfo, StreamingContext).)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Public method IsValid Returns a value that indicates whether the event has a valid RunId and a valid setting for NewState setting. (Overrides TestMessage.IsValid().)
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method 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.

See Also

Reference

Microsoft.VisualStudio.TestTools.Common Namespace