Chart.ImageLocation 屬性

定義

在渲染時,取得或設定影像 ImageTag 檔案儲存的位置。

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

屬性值

一個 string 代表影像檔案儲存在伺服器上的 URL 的值。

屬性

備註

ImageStorageMode 設定為 ImageStorageMode.UseHttpHandler,此性質無效。

當你使用 image tag 方法渲染圖表影像時,會產生一張圖表影像,然後以根據屬性 ChartImageType 決定的格式儲存到伺服器的磁碟中。

儲存影像檔案的網址可以是絕對的,也可以是相對的;影像檔的副檔名由屬性 ChartImageType 決定。

影像檔可以硬編碼為永遠為一個檔名,或者你也可以使用「#」號來使用使用者識別碼(UID)或指定數量唯一命名的檔案,這稱為輪流(Round Robin)。

適用於