AdRotator.AdvertisementFile 属性

定义

获取或设置包含公布数据的 XML 文件的路径。Gets or sets the path to the XML file that contains advertisement data. 默认值为空字符串 ("")。The default value is an empty string (""). 此 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. 此 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.

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

属性值

String

XML 文件的路径,该文件包含要在 AdRotator 控件中呈现的广告的属性。The path to the XML file containing the properties of the advertisements to render in the AdRotator control.


出于安全目的,XML 文件应该放置在 App_Data 文件夹中,该文件夹配置为不允许用户直接访问 XML 文件。For security purposes, XML files should be placed in the App_Data folder, which is configured to not allow users direct access to XML files.

属性

注解

文件格式和文件名限制符合属性所述的限制 AdRotator.AdvertisementFileThe file format and file name restrictions conform to those described for the AdRotator.AdvertisementFile property.

适用于

另请参阅