IWDTFTarget2 interface

Defines operations and properties for a testable item.

Members

The IWDTFTarget2 interface inherits from ITracing. IWDTFTarget2 also has these types of members:

Methods

The IWDTFTarget2 interface has these methods.

MethodDescription
Eval

Evaluates whether this target matches an SDEL statement.

GetInterface

Returns an action for the target.

GetRelations

Returns a collection of related targets.

GetValue

Returns a value from the target that is associated with a specified attribute.

GetValueBool

Returns a boolean value from the target that is associated with a specified attribute.

GetValueLongNumber

Returns a long number value from the target that is associated with a specified attribute.

GetValueLongNumbers

Returns a collection of long number values from the target that are associated with a specified attribute.

GetValueNumber

Returns a number value from the target that is associated with a specified attribute.

GetValueNumbers

Returns a collection of number values from the target that are associated with a specified attribute.

GetValueString

Returns a string value from the target that is associated with a specified attribute.

GetValueStrings

Returns a collection of string values from the target that are associated with a specified attribute.

HasContext

Determines whether a given context exists for the target.

HasInterface

Determines whether the target supports a given interface.

 

Properties

The IWDTFTarget2 interface has these properties.

PropertyAccess typeDescription

Context

Read/write

Gets and sets a name-value pair that represents user data for the target.

Type

Read-only

Gets a value that identifies the depot that the target comes from.

WDTF

Read-only

Gets the main WDTF aggregation object.

 

Remarks

The IWDTFTarget2 interface abstracts the notion of a testable item, which is the central focus of the WDTF object model. You can retrieve instances of the IWDTFTarget2 interface only through other interfaces (such as the IWDTFDeviceDepot2 interface or the IWDTFSystemDepot2 interface).

The lifetime of a target is tied to its creator; that is, if you retrieve a target from the DeviceDepot property, the target will exist as long as the DeviceDepot property exists.

You cannot copy an instance of the IWDTFTarget2 interface. Even if you add a target to a collection, you really just add a reference to the same instance.

Implementation Details

ProgID: (Use the IWDTF aggregation interface to instantiate)

TraceLevel Path: HKCR\WDTF.Target.1\

Note  The implementation of this interface is not thread-safe.
 

Requirements

Minimum supported client

Windows XP Professional

Minimum supported server

Windows Server 2008

Namespace

Microsoft.WDTF

Assembly

WDTF.Interop.metadata_dll

Header

WDTF.h

IDL

WDTF.idl

 

 

Send comments about this topic to Microsoft

Show: