ITarget interface

The ITarget interface abstracts the notion of a testable item, which is the central focus of the WDTF object model.

Members

The ITarget interface inherits from ITracing. ITarget also has the following types of members:

  • Methods
  • Properties

Methods

The ITarget interface has the following methods.

Method Description
Eval

Evaluates whether the target matches a given Simple Data Evaluation Language (SDEL) statement.

GetInterface

Retrieves an instantiated, target-specific implementation of an Action Interface.

GetRelations

Retrieves a subset of related targets that are packaged into a new instance of the ITargets collection interface.

GetValue

Retrieves a single value from the target, given a single field.

 

Properties

The ITarget interface has the following properties.

Property Description

Context

Retrieves or sets user data for the target by specifying a tag.

Type

A string that identifies the depot that the target comes from.

 

Remarks

You can retrieve instances of the ITarget interface only through other interfaces (such as the IDeviceDepot interface and the ISystemDepot 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 ITarget 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

Type library

WDTF.tlb

See also

Action Interfaces

IDeviceDepot

ISystemDepot

ITarget::Context

ITarget::Eval

ITarget::GetValue

ITarget::GetInterface

ITarget::GetRelations

ITarget::Type

ITargets

ITracing

IWDTF

IWDTF::DeviceDepot

 

 

Send comments about this topic to Microsoft

Build date: 1/12/2012