Partager via


IXRStyle::GetTargetType (Windows Embedded CE 6.0)

1/6/2010

This method retrieves the type of object for which this style is intended.

Syntax

virtual HRESULT STDMETHODCALLTYPE GetTargetType(
    IID *pIID
) = 0;

Parameters

  • pIID
    [out] Pointer to the interface identifier (IID) of the object type for which this style is intended.

Return Value

Returns an HRESULT that indicates success or failure.

Remarks

When you create an IXRStyle object, you must set the type by calling IXRStyle::SetTargetType. If you do not, an exception is thrown.

You can set a style on any object that derives from IXRFrameworkElement. Therefore, the target type can be an IID for any of those derived objects.

The IID returned in pIID is the name of an object that inherits from IXRFrameworkElement, prefixed with the substring "IID_". For example, IID_ListBoxItem.

.NET Framework Equivalent

System.Windows.Style.TargetType

Requirements

Header XamlRuntime.h
sysgen SYSGEN_XAML_RUNTIME
Windows Embedded CE Windows Embedded CE 6.0 R3

See Also

Reference

IXRStyle
IXRStyle::SetTargetType