IXRFrameworkElement::SetTag (Compact 2013)

3/28/2014

This method sets an arbitrary string value that you can use to store custom information about this framework element.

Syntax

virtual HRESULT STDMETHODCALLTYPE SetTag(
    __in const WCHAR* pTag
) = 0;

Parameters

  • pTag
    [in] Pointer to a string that contains the intended value.

Return Value

Returns an HRESULT that indicates success or failure.

Remarks

The value in pTag resembles Tag properties in other programming models. Tag is intended to provide a pre-existing property location where you can store some basic custom information about an IXRFrameworkElement object without requiring you to create a subclass from IXRFrameworkElement or a derived class.

.NET Framework Equivalent

System.Windows.FrameworkElement.Tag

Requirements

Header

XamlRuntime.h

sysgen

SYSGEN_XAML_RUNTIME

See Also

Reference

IXRFrameworkElement