ImplicitResourceKey.KeyPrefix 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
取得或設定前綴,用以識別一組屬性。
public:
property System::String ^ KeyPrefix { System::String ^ get(); void set(System::String ^ value); };
public string KeyPrefix { get; set; }
member this.KeyPrefix : string with get, set
Public Property KeyPrefix As String
屬性值
A String 包含隱含資源表達式的前綴。
備註
屬性 KeyPrefix 將一組可指派給控制項的屬性串聯起來。 該 KeyPrefix 性質指的是冒號之後(若有的話為:),則在第一個句號之前的值。 例如,假設你有一個隱含資源,形式如下:
<asp:label runat="server" id="label1" meta:resourcekey="Welcome"
text="Welcome"
ie:text="Welcome Internet Explorer User"
forecolor="blue"/>
此資源包含三個鍵,分別為 Welcome.Text、 、 Ie:Welcome.TextWelcome.Forecolor和 ,這些鍵具有可在資源檔案或原始碼中擷取的在地資源值。 每個鍵值 為 "Welcome"KeyPrefix 。