ImplicitResourceKey 類別

定義

包含識別隱含資源鍵的欄位。

public ref class ImplicitResourceKey sealed
public sealed class ImplicitResourceKey
type ImplicitResourceKey = class
Public NotInheritable Class ImplicitResourceKey
繼承
ImplicitResourceKey

備註

ImplicitResourceKey 類別包含識別隱含資源鍵的欄位。

控制項會以以下形式指派隱含資源:

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

在頁面解析過程中,隱含資源會以 [filter:] 前綴的形式轉換成明確的鍵。財產[。子財產]。 任何帶有指定前綴的資源值(在前述範例中為 的 Welcome前綴)都會被指派到相符的控制屬性上。 例如,假設資源檔案或原始碼中存在以下鍵值:

Welcome.Text

Ie:Welcome.Text

Welcome.Forecolor

這些值會被分配給各自的控制屬性。

隱含的資源鍵只能參考本地資源。

建構函式

名稱 Description
ImplicitResourceKey()

初始化 ImplicitResourceKey 類別的新執行個體。

ImplicitResourceKey(String, String, String)

初始化一個新的類別實例 ImplicitResourceKey ,並以指定值 FilterKeyPrefixProperty 屬性。

屬性

名稱 Description
Filter

取得或設定隱含資源鍵的濾波器值。

KeyPrefix

取得或設定前綴,用以識別一組屬性。

Property

取得或設定隱含資源鍵的屬性與子屬性(如提供)。

方法

名稱 Description
Equals(Object)

判斷指定的物件是否等於目前的物件。

(繼承來源 Object)
GetHashCode()

做為預設哈希函式。

(繼承來源 Object)
GetType()

取得目前實例的 Type

(繼承來源 Object)
MemberwiseClone()

建立目前 Object的淺層複本。

(繼承來源 Object)
ToString()

傳回表示目前 物件的字串。

(繼承來源 Object)

適用於

另請參閱