Edit

Share via


Reference.ProvideValue(IServiceProvider) Method

Definition

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

public:
 override System::Object ^ ProvideValue(IServiceProvider ^ serviceProvider);
public override object ProvideValue (IServiceProvider serviceProvider);
override this.ProvideValue : IServiceProvider -> obj
Public Overrides Function ProvideValue (serviceProvider As IServiceProvider) As Object

Parameters

serviceProvider
IServiceProvider

A class that implements the IXamlNameResolver service.

Returns

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

Exceptions

serviceProvider value does not implement the IXamlNameResolver service.

-or-

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

serviceProvider is null.

Remarks

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

Applies to