Export (0) Print
Expand All

IImplicitResourceProvider Interface

Defines methods a class implements to act as an implicit resource provider.

Namespace:  System.Web.Compilation
Assembly:  System.Web (in System.Web.dll)

public interface IImplicitResourceProvider

The IImplicitResourceProvider type exposes the following members.

  NameDescription
Public methodGetImplicitResourceKeysGets a collection of implicit resource keys as specified by the prefix.
Public methodGetObjectGets an object representing the value of the specified resource key.
Top

Resources can be declared explicitly or implicitly within a page. Implicit resources allow the developer to assign a collection of resource values to a control in one statement rather than assigning each value individually. When the page parser encounters an implicit resource in the form of meta:resourcekey="WelcomeLabel", it assigns all the values with the WelcomeLabel resource key prefix to the corresponding values in the control. For example, if a resource file defines values for WelcomeLabel.Text and WelcomeLabel.ToolTip, those values would be assigned to a Label control with an implicit reference to WelcomeLabel.

The IImplicitResourceProvider interface defines the methods a resource provider implements to access implicit resources. You can obtain a particular value using the GetObject method.

If you create a custom resource provider, you do not need to provide customized support for implicit resource localization. Implicit localization will work with your resource provider.

.NET Framework

Supported in: 4.5, 4, 3.5, 3.0, 2.0

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