IWDTFTarget2::put_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 put_Context(
  BSTR    Tag,
  VARIANT newVal
);

Return value

None

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

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

See also

IWDTFTarget2