정보
요청한 주제가 아래에 표시됩니다. 그러나 이 주제는 이 라이브러리에 포함되지 않습니다.

DependencyObject.ReadLocalValue 메서드

Returns the local value of a dependency property, if it exists.

네임스페이스: System.Windows
어셈블리: WindowsBase(windowsbase.dll)

public Object ReadLocalValue (
	DependencyProperty dp
)
public Object ReadLocalValue (
	DependencyProperty dp
)
public function ReadLocalValue (
	dp : DependencyProperty
) : Object
XAML에서 메서드를 사용할 수 없습니다.

매개 변수

dp

The DependencyProperty identifier of the property to retrieve the value for.

반환 값

Returns the local value, or returns the UnsetValue if no local value is set.

You should use GetValue for most typical "get" operations for a dependency property. ReadLocalValue does not return the effective value for a variety of circumstances where the value was not locally set.

Values that are set by styles, themes, templates, the default value from metadata, or property value inheritance are not considered to be local values. However, bindings and other expressions are considered to be local values, after they have been evaluated.

When no local value is set, this method returns UnsetValue.

If the returned value is other than UnsetValue, you can query the metadata of the requested dependency property to determine whether there is a more specific type that the return value can be converted to.

Microsoft .NET Framework 3.0은 Windows Vista, Microsoft Windows XP SP2 및 Windows Server 2003 SP1에서 지원됩니다.

.NET Framework

3.0에서 지원

커뮤니티 추가 항목

표시:
© 2014 Microsoft