Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
ImplicitResourceKey Class

ImplicitResourceKey Class

Contains fields that identify an implicit resource key.


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

public sealed class ImplicitResourceKey

The ImplicitResourceKey type exposes the following members.

Public methodImplicitResourceKey()Initializes a new instance of the ImplicitResourceKey class.
Public methodImplicitResourceKey(String, String, String)Initializes a new instance of the ImplicitResourceKey class with the specified values for the Filter, KeyPrefix and Property properties.

Public propertyFilterGets or sets the filter value of an implicit resource key.
Public propertyKeyPrefixGets or sets the prefix for identifying a group of properties.
Public propertyPropertyGets or sets a property and subproperty, if provided, for an implicit resource key.

Public methodEquals(Object)Determines whether the specified object is equal to the current object. (Inherited from Object.)
Public methodGetHashCodeServes as the default hash function. (Inherited from Object.)
Public methodGetTypeGets the Type of the current instance. (Inherited from Object.)
Public methodToStringReturns a string that represents the current object. (Inherited from Object.)

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

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

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

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:




These values are assigned to their respective control properties.

Implicit resource keys can reference only local resources.

.NET Framework

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

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
© 2015 Microsoft