UID | title | description | old-location | tech.root | ms.date | keywords | ms.keywords | req.header | req.include-header | req.target-type | req.target-min-winverclnt | req.target-min-winversvr | req.kmdf-ver | req.umdf-ver | req.ddi-compliance | req.unicode-ansi | req.idl | req.max-support | req.namespace | req.assembly | req.type-library | req.lib | req.dll | req.irql | targetos | req.typenames | f1_keywords | topic_type | api_type | api_location | api_name | ||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
NF:wdtf.IWDTFTarget2.put_Context |
IWDTFTarget2::put_Context (wdtf.h) |
Learn how the method gets and sets a name-value pair that represents user data for the target. |
dtf\iwdtftarget2_context.htm |
dtf |
04/04/2018 |
|
Context property [Windows Device Testing Framework], Context property [Windows Device Testing Framework],IWDTFTarget2 interface, IWDTFTarget2 interface [Windows Device Testing Framework],Context property, IWDTFTarget2.Context, IWDTFTarget2.put_Context, IWDTFTarget2::Context, IWDTFTarget2::get_Context, IWDTFTarget2::put_Context, Microsoft.WDTF.IWDTFTarget2.Context, Microsoft::WDTF::IWDTFTarget2::Context, dtf.iwdtftarget2_context, ntddk/IWDTFTarget2::Context, ntddk/IWDTFTarget2::get_Context, ntddk/IWDTFTarget2::put_Context, put_Context |
wdtf.h |
WDTF.h |
Windows |
Windows XP Professional |
Windows Server 2008 |
WDTF.idl |
Microsoft.WDTF |
WDTF.Interop.metadata_dll |
Windows |
|
|
|
|
|
Gets and sets a name-value pair that represents user data for the target.
This property is read/write.
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.