WebControl.IAttributeAccessor.GetAttribute(String) WebControl.IAttributeAccessor.GetAttribute(String) WebControl.IAttributeAccessor.GetAttribute(String) Method

定义

获取具有指定名称的 Web 控件的特性。Gets an attribute of the Web control with the specified name.

 virtual System::String ^ System.Web.UI.IAttributeAccessor.GetAttribute(System::String ^ name) = System::Web::UI::IAttributeAccessor::GetAttribute;
string IAttributeAccessor.GetAttribute (string name);
Function GetAttribute (name As String) As String Implements IAttributeAccessor.GetAttribute

参数

name
String String String

属性名。The name of the attribute.

返回

属性的值。The value of the attribute.

实现

注解

IAttributeAccessor.GetAttribute方法是显式接口成员实现。The IAttributeAccessor.GetAttribute method is an explicit interface member implementation. 它只能在WebControl类的实例被强制转换IAttributeAccessor为接口时使用。It can be used only when the instance of the WebControl class is cast to an IAttributeAccessor interface.

适用于

另请参阅