Partager via


IXRDependencyObject::SetName (Windows Embedded CE 6.0)

1/6/2010

This method sets the name of this dependency object.

Syntax

virtual HRESULT STDMETHODCALLTYPE SetName(
    const WCHAR* pName
) = 0; 

Parameters

  • pName
    [in] Pointer to a string that contains the new name of this dependency object.

Return Value

Returns an HRESULT that indicates success or failure.

Remarks

The name provides a reference so that C++ code-behind, such as event-handler code, can refer to an element in the element tree.

The IXRFrameworkElement::FindName method can find objects by **Name****in the element tree.

.NET Framework Equivalent

System.Windows.FrameworkElement.Name

Requirements

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

See Also

Reference

IXRDependencyObject
IXRDependencyObject::GetName