Style.RegisterStyle(String, Type, Object, Boolean) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
註冊一個樣式屬性,並回傳唯一鍵供查詢。 這個 API 已經過時了。 有關如何開發 ASP.NET 行動應用程式的資訊,請參閱
public:
static System::Object ^ RegisterStyle(System::String ^ name, Type ^ type, System::Object ^ defaultValue, bool inherit);
public static object RegisterStyle(string name, Type type, object defaultValue, bool inherit);
static member RegisterStyle : string * Type * obj * bool -> obj
Public Shared Function RegisterStyle (name As String, type As Type, defaultValue As Object, inherit As Boolean) As Object
參數
- name
- String
風格房產的名稱。
- type
- Type
該物業所使用的類型。
- defaultValue
- Object
屬性的預設值。
- inherit
- Boolean
表示樣式是否繼承自父物件。 預設值為 true。
傳回
一個獨特的查詢鍵。
備註
只從繼承的風格類別中呼叫。