Export (0) Print
Expand All

Reference.ProvideValue Method

Returns an object that is the value of the target property. For the Reference type, this is the object that the provided Name references.

Namespace:  System.Windows.Markup
Assembly:  System.Xaml (in System.Xaml.dll)

public override Object ProvideValue(
	IServiceProvider serviceProvider
)

Parameters

serviceProvider
Type: System.IServiceProvider

A class that implements the IXamlNameResolver service.

Return Value

Type: System.Object
The value of the target property. This is potentially any object that is type-mapped in the relevant backing assemblies.

ExceptionCondition
InvalidOperationException

serviceProvider value does not implement the IXamlNameResolver service.

-or-

Name value has not been set through construction or positional usage.

ArgumentNullException

serviceProvider is null.

This method expects a serviceProvider value that implements the IXamlNameResolver service.

.NET Framework

Supported in: 4.6, 4.5, 4

.NET Framework Client Profile

Supported in: 4
Show:
© 2015 Microsoft