MobileControl.SetAttribute(String, String) 方法
定义
指定分配给 MobileControl 对象的特性及其值。Designates an attribute and its value to assign to the MobileControl object. 此 API 已废弃不用。This API is obsolete. 若要了解如何开发 ASP.NET 移动应用,请参阅 Mobile Apps & Sites with ASP.NET (ASP.NET 移动应用和网站)。For information about how to develop ASP.NET mobile applications, see Mobile Apps & Sites with ASP.NET.
protected:
void SetAttribute(System::String ^ name, System::String ^ value);
protected void SetAttribute (string name, string value);
member this.SetAttribute : string * string -> unit
Protected Sub SetAttribute (name As String, value As String)
参数
注解
通过调用方法设置的属性 SetAttribute 存储在 CustomAttributes 属性中。The attributes set through calls to the SetAttribute method are stored in the CustomAttributes property.