System.Web.Compilation.ResourceExpressionFields.ClassKey Property

Gets the class key for a parsed resource expression.

Syntax

public string ClassKey { get; }

Value

Documentation for this section has not yet been entered.

Remarks

This method returns the class key for a parsed resource expression. The class key represents the name of the resource file, and is the value specified before the comma (,) in an expression of the form <%$ Resources: [Namespace.]ClassKey, ResourceKey $>. A namespace value for the resource class is optional. When a namespace is provided, the namespace and the class key are returned in the ResourceExpressionFields.ClassKey property. The class key cannot contain spaces or double-byte character sets (DBCS).

To reference a resource file named Financial.resx or a localized version such as Financial.en-GB.resx, you would include the resource expression <%$ Resources: Financial, ResourceKey %>. After parsing, the ResourceExpressionFields.ClassKey property would return "Financial" as its value.

Note:

Sensitive information should not be stored in a resource file.

Requirements

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