Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

DataCollectionContext Class

 

Represents the context in which data collection occurs.

Namespace:   Microsoft.VisualStudio.TestTools.Execution
Assembly:  Microsoft.VisualStudio.QualityTools.ExecutionCommon (in Microsoft.VisualStudio.QualityTools.ExecutionCommon.dll)

System.Object
  Microsoft.VisualStudio.TestTools.Execution.DataCollectionContext

[SerializableAttribute]
public class DataCollectionContext

NameDescription
System_CAPS_protmethodDataCollectionContext(SessionId)

Initializes a new instance of the DataCollectionContext class by using the provided session ID.

System_CAPS_protmethodDataCollectionContext(SessionId, TestExecId)

Initializes a new instance of the DataCollectionContext class by using the provided session ID and test execution ID.

NameDescription
System_CAPS_pubpropertyHasTestCase

Gets a value that indicates whether an executing test case is associated with this context.

System_CAPS_pubpropertySessionId

Gets the SessionId for the session under which the data collection occurs. Will not be null.

System_CAPS_pubpropertyTestExecId

Gets a TestExecId that identifies the test execution under which the data collection occurs.

NameDescription
System_CAPS_pubmethodEquals(Object)

Determines whether the specified DataCollectionContext matches the current DataCollectionContext.(Overrides Object.Equals(Object).)

System_CAPS_protmethodFinalize()

(Inherited from Object.)

System_CAPS_pubmethodGetHashCode()

Serves as a hash function for a DataCollectionContext.(Overrides Object.GetHashCode().)

System_CAPS_pubmethodGetType()

(Inherited from Object.)

System_CAPS_protmethodMemberwiseClone()

(Inherited from Object.)

System_CAPS_pubmethodToString()

(Inherited from Object.)

NameDescription
System_CAPS_puboperatorSystem_CAPS_staticEquality(DataCollectionContext, DataCollectionContext)

Returns a value that indicates whether two instances of DataCollectionContext match.

System_CAPS_puboperatorSystem_CAPS_staticInequality(DataCollectionContext, DataCollectionContext)

Returns a value that indicates whether two instances of DataCollectionContext do not match.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
Show: