Image.AlternateText 属性

定义

获取或设置当图像不适用于设备时要显示的备用文本。 默认值为空字符串 ("")。 此 API 已过时。 有关如何开发 ASP.NET 移动应用程序的信息,请参阅 Mobile Apps &具有 ASP.NET 的网站。

public:
 property System::String ^ AlternateText { System::String ^ get(); void set(System::String ^ value); };
[System.ComponentModel.Bindable(true)]
public string AlternateText { get; set; }
[<System.ComponentModel.Bindable(true)>]
member this.AlternateText : string with get, set
Public Property AlternateText As String

属性值

当图像不适用于设备时要显示的备用文本。

属性

注解

备用文本显示在不支持图像的浏览器中,或者图像文件不可用。

适用于

另请参阅