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。
返回
用于查找的唯一键。
注解
仅从继承的样式类调用。