System.Web.Compilation.ImplicitResourceKey Class

Contains fields that identify an implicit resource key.

See Also: ImplicitResourceKey Members

Syntax

public sealed class ImplicitResourceKey

Remarks

The System.Web.Compilation.ImplicitResourceKey class contains fields that identify an implicit resource key.

An implicit resource is assigned to a control in the following form:

Example

    <asp:label runat="server" id="label1" meta:resourcekey="Welcome"
        text="Welcome" 
          ie:text="Welcome Internet Explorer User"  
        forecolor="blue"/>  

During page parsing, an implicit resource is converted into explicit keys in the form [filter:]prefix.property[.subproperty]. Any resource values with the specified prefix (in the preceding example, a prefix of Welcome) are assigned to the matching control properties. For example, suppose values exist in the resource file or source code for the following keys:

Welcome.Text

Ie:Welcome.Text

Welcome.Forecolor

These values are assigned to their respective control properties.

Implicit resource keys can reference only local resources.

Requirements

Namespace: System.Web.Compilation
Assembly: System.Web (in System.Web.dll)
Assembly Versions: 2.0.0.0
Since: .NET 2.0