ResourceExpressionFields.ResourceKey ResourceExpressionFields.ResourceKey ResourceExpressionFields.ResourceKey ResourceExpressionFields.ResourceKey Property


取得剖析的資源運算式之資源索引鍵。Gets the resource key for a parsed resource expression.

 property System::String ^ ResourceKey { System::String ^ get(); };
public string ResourceKey { get; }
member this.ResourceKey : string
Public ReadOnly Property ResourceKey As String


String,包含資源索引鍵,如果尚未設定資源索引鍵則為 EmptyA String containing the resource key, or Empty if the resource key has not been set.


這個方法會傳回剖析的資源運算式之資源索引鍵。This method returns the resource key for a parsed resource expression. 資源索引鍵會是以下格式的運算式中指定逗號 (,) 之後的值<%$ Resources: ClassKey, ResourceKey %>The resource key is the value specified after the comma (,) in an expression of the form <%$ Resources: ClassKey, ResourceKey %>. ResourceKey屬性會識別對應至類別索引鍵的資源檔內的特定索引鍵/值組。The ResourceKey property identifies a particular key/value pair within the resource file mapped to the class key. 例如,如果名為 Financial.resx 包含金鑰,稱為Currency,無法指定值與資源運算式<%$ Resources: Financial, Currency %>For example, if a file named Financial.resx contains a key called Currency, that value could be specified with the resource expression <%$ Resources: Financial, Currency %>. 剖析之後,ResourceKey屬性會傳回"Currency"做為其值。After parsing, the ResourceKey property would return "Currency" as its value.


機密資訊不應該儲存在資源檔。Sensitive information should not be stored in a resource file.