IDirectManipulationContent::SetTag method

Specifies the tag object for the content.

Syntax


HRESULT SetTag(
  [in, unique]  IUnknown *object,
  [in]          UINT32 id
);

Parameters

object [in]

The object portion of the tag.

id [in]

The ID portion of the tag.

Return value

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

Remarks

GetTag and SetTag are useful for associating an external COM object with the content without an external mapping between the two. They can also be used to pass information to callbacks generated for the content.

A tag is a pairing of an integer ID (id) with a Component Object Model (COM) object (object). It can be used by an app to store and retrieve an arbitrary object associated with the content.

The object parameter is optional, so that the method can set just the identifier portion.

Requirements

Minimum supported client

Windows 8 [desktop apps only]

Minimum supported server

Windows Server 2012 [desktop apps only]

Header

DirectManipulation.h

IDL

DirectManipulation.idl

IID

IID_IDirectManipulationContent is defined as B89962CB-3D89-442B-BB58-5098FA0F9F16

See also

IDirectManipulationContent

 

 

Community Additions

ADD
Show:
© 2014 Microsoft