語言

Style.RegisterStyle(String, Type, Object, Boolean) 方法

定義

註冊一個樣式屬性,並回傳唯一鍵供查詢。 這個 API 已經過時了。 有關如何開發 ASP.NET 行動應用程式的資訊,請參閱 Mobile Apps &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。

傳回

一個獨特的查詢鍵。

備註

只從繼承的風格類別中呼叫。

適用於