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

返回

用于查找的唯一键。

注解

仅从继承的样式类调用。

适用于