ITestObject<T> Interface

This API supports the .NET Framework infrastructure and is not intended to be used directly from your code.

Provides a base interface for objects that are stored on the Visual Studio Test Professional server.

Namespace:  Microsoft.TeamFoundation.TestManagement.Client
Assembly:  Microsoft.TeamFoundation.TestManagement.Client (in Microsoft.TeamFoundation.TestManagement.Client.dll)

Syntax

'Declaration
Public Interface ITestObject(Of T) _
    Inherits IIdentifiable(Of T), IPropertyOwner, IDataErrorInfo,  _
    INotifyPropertyChanged
public interface ITestObject<T> : IIdentifiable<T>, 
    IPropertyOwner, IDataErrorInfo, INotifyPropertyChanged
generic<typename T>
public interface class ITestObject : IIdentifiable<T>, 
    IPropertyOwner, IDataErrorInfo, INotifyPropertyChanged
type ITestObject<'T> =  
    interface 
        interface IIdentifiable<'T>
        interface IPropertyOwner 
        interface IDataErrorInfo 
        interface INotifyPropertyChanged 
    end
JScript does not support generic types or methods.

Type Parameters

  • T
    The Type of the ID of the object.

The ITestObject<T> type exposes the following members.

Properties

  Name Description
Public property Error Gets an error message indicating what is wrong with this object. (Inherited from IDataErrorInfo.)
Public property Id Gets the identifier. (Inherited from IIdentifiable<TKey>.)
Public property InvalidProperties Gets a list of property names that are invalid. (Inherited from IPropertyOwner.)
Public property IsDirty Gets a value that indicates whether any properties have changed since the last refresh, fetch, or save. (Inherited from IPropertyOwner.)
Public property Item Gets the error message for the property with the given name. (Inherited from IDataErrorInfo.)
Public property Project Gets the test project.
Public property Revision Gets the current revision number for this object.
Public property UserData Gets or sets an arbitrary object or value that is not persisted, but allows test management objects to be dynamically extended.

Top

Events

  Name Description
Public event PropertyChanged Occurs when a property value changes. (Inherited from INotifyPropertyChanged.)

Top

See Also

Reference

Microsoft.TeamFoundation.TestManagement.Client Namespace

IIdentifiable<TKey>

IPropertyOwner

IDataErrorInfo

INotifyPropertyChanged