IWDTFTarget2::HasContext method (wdtf.h)

Determines whether a given context exists for the target.

Syntax

HRESULT HasContext(
  [in]          BSTR         Tag,
  [out, retval] VARIANT_BOOL *pResult
);

Parameters

[in] Tag

The context name.

[out, retval] pResult

True if the named context exists; otherwise, false.

Return value

If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.

Requirements

Requirement Value
Minimum supported client Windows XP Professional
Minimum supported server Windows Server 2008
Target Platform Desktop
Header wdtf.h

See also

IWDTFTarget2