IWDTFTarget2::get_Context method (wdtf.h)

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

This property is read/write.

Syntax

HRESULT get_Context(
  BSTR    Tag,
  VARIANT *pVal
);

Parameters

Tag

pVal

Remarks

The Context property is parameterized with the BSTR Tag parameter. This parameterization enables you to attach many different named values to an instance of the IWDTFTarget2 interface. You can then retrieve these same values by name at a later time.

Each value is stored as a VARIANT, which correctly follows COM ref-counting rules. You can store object references within the target as easily as any other variable data-type.

For more information about the Context property, see Creating WDTF Scenarios.

Requirements

Requirement Value
Minimum supported client Windows XP Professional
Minimum supported server Windows Server 2008
Target Platform Windows
Header wdtf.h (include WDTF.h)

See also

IWDTFTarget2