AdRotator.AdvertisementFile 屬性

定義

取得或設定含有廣告資料的 XML 檔的路徑。 預設值為空字串 ("")。 這個 API 已經過時。 如需如何開發 ASP.NET 行動應用程式的資訊,請參閱 mobile Apps & Sites with ASP.NET。 這個 API 已經過時。 如需如何開發 ASP.NET 行動應用程式的資訊,請參閱 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

屬性值

XML 檔案的路徑包含要在 AdRotator 控制項中呈現的廣告屬性。 出於安全性目的,XML 檔應該在 [App_Data] 資料夾中,該資料夾已設定為不允許使用者直接存取 XML 檔。

屬性

備註

檔案格式和檔名限制符合 屬性 AdRotator.AdvertisementFile 所述的限制。

適用於

另請參閱