편집

다음을 통해 공유


ResourceExpressionEditorSheet.ResourceKey Property

Definition

Gets or sets the name of the resource, which is used as a key to find the resource value.

public:
 property System::String ^ ResourceKey { System::String ^ get(); void set(System::String ^ value); };
[System.ComponentModel.TypeConverter(typeof(System.Web.UI.Design.ResourceExpressionEditorSheet+ResourceKeyTypeConverter))]
public string ResourceKey { get; set; }
[<System.ComponentModel.TypeConverter(typeof(System.Web.UI.Design.ResourceExpressionEditorSheet+ResourceKeyTypeConverter))>]
member this.ResourceKey : string with get, set
Public Property ResourceKey As String

Property Value

The name of the resource.

Attributes

Remarks

The ResourceKey property is required for a resource expression; it indicates the name of the resource. The name of the resource is used at both run time and design time to look up a resource and assign it to a control property.

For example, if the Text property for a Label control is assigned to the resource expression <%$ Resources:Strings, labelText $>, the resource expression is evaluated and the Text field is assigned to the labelText resource value in the Strings class.

Applies to

See also