Click to Rate and Give Feedback
MSDN
MSDN Library
.NET Development
.NET Framework 3.5
 GetValueSource Method
This page is specific to
Microsoft Visual Studio 2008/.NET Framework 3.5

Other versions are also available for the following:
.NET Framework Class Library
DependencyPropertyHelper..::.GetValueSource Method

Updated: November 2007

Returns a structure that reports various metadata and property system characteristics of a specified dependency property on a particular DependencyObject.

Namespace:  System.Windows
Assembly:  PresentationFramework (in PresentationFramework.dll)

Visual Basic (Declaration)
Public Shared Function GetValueSource ( _
    dependencyObject As DependencyObject, _
    dependencyProperty As DependencyProperty _
) As ValueSource
Visual Basic (Usage)
Dim dependencyObject As DependencyObject
Dim dependencyProperty As DependencyProperty
Dim returnValue As ValueSource

returnValue = DependencyPropertyHelper.GetValueSource(dependencyObject, _
    dependencyProperty)
C#
public static ValueSource GetValueSource(
    DependencyObject dependencyObject,
    DependencyProperty dependencyProperty
)
Visual C++
public:
static ValueSource GetValueSource(
    DependencyObject^ dependencyObject, 
    DependencyProperty^ dependencyProperty
)
J#
public static ValueSource GetValueSource(
    DependencyObject dependencyObject,
    DependencyProperty dependencyProperty
)
JScript
public static function GetValueSource(
    dependencyObject : DependencyObject, 
    dependencyProperty : DependencyProperty
) : ValueSource
XAML
You cannot use methods in XAML.

Parameters

dependencyObject
Type: System.Windows..::.DependencyObject

The element that contains the dependencyProperty to report information for.

dependencyProperty
Type: System.Windows..::.DependencyProperty

The identifier for the dependency property to report information for.

Return Value

Type: System.Windows..::.ValueSource

A ValueSource structure that reports the specific information.

You should call this method in a context such that late participants in property value determination are able to act on a property. For instance, bindings may not be active on a property unless all participant elements in the element tree are loaded and the asynchronous binding is propagated, and the binding source object is connected. Similarly, resources including all necessary theme dictionaries should be available.

Windows Vista

The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

.NET Framework

Supported in: 3.5, 3.0
Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Processing
© 2008 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Page view tracker