Export (0) Print
Expand All

NullExtension.ProvideValue Method

Provides null to use as a value as the output of this markup extension.

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

public override Object ProvideValue(
	IServiceProvider serviceProvider
)

Parameters

serviceProvider
Type: System.IServiceProvider

An object that can provide services for the markup extension implementation.

Return Value

Type: System.Object
A null reference.

This method supports XAML processor implementations, and is not intended to be called directly. A XAML processor implementation uses this method when it creates object graphs that include an x:Null extension usage. This relies on general behavior for XAML processors when they process any MarkupExtension and call its ProvideValue implementation.

This implementation does not rely on services that are based on the passed serviceProvider. It always returns a null reference regardless of context. In the .NET Framework XAML Services implementation, the value to return is obtained by referencing the XamlLanguage.Null static value.

.NET Framework

Supported in: 4.5, 4, 3.5, 3.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

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

Show:
© 2014 Microsoft