IHtmlControlDesignerBehavior.GetAttribute(String, Boolean) 方法

定义

获取指定的特性。Gets the specified attribute.

public:
 System::Object ^ GetAttribute(System::String ^ attribute, bool ignoreCase);
public object GetAttribute (string attribute, bool ignoreCase);
abstract member GetAttribute : string * bool -> obj
Public Function GetAttribute (attribute As String, ignoreCase As Boolean) As Object

参数

attribute
String

要检索的特性。The attribute to retrieve.

ignoreCase
Boolean

如果特性语法不区分大小写,则为 true;否则为 falsetrue if the attribute syntax is case-insensitive; otherwise, false.

返回

Object

被检索的特性。The attribute that was retrieved.

注解

备注

GetAttribute方法已过时。The GetAttribute method is obsolete. GetAttribute Tag 对类的属性使用方法 ControlDesigner ,以获得等效的控件设计器功能。Use the GetAttribute method on the Tag property of the ControlDesigner class for equivalent control designer functionality.

适用于

另请参阅