BitmapImage.UriSource 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
取得或設定產生此 BitmapImage 的圖形原始碼檔案的統一資源識別碼(URI)。
public:
property Uri ^ UriSource { Uri ^ get(); void set(Uri ^ value); };
Uri UriSource();
void UriSource(Uri value);
public System.Uri UriSource { get; set; }
var uri = bitmapImage.uriSource;
bitmapImage.uriSource = uri;
Public Property UriSource As Uri
<BitmapImage UriSource="uri" />
屬性值
一個描述產生此 BitmapImage 的圖形原始碼檔案的統一資源識別碼(URI)的物件。
備註
如果你要套用影像原始檔案到特定影像元素,BaseUri 屬性可能對形成 URI 很有用。
在記憶體不足的情況下,可能會提出例外,訊息為「影像未被識別」,並顯示 HRESULT 為 0x88982F60。 雖然此例外通常表示資料品質不佳,但若應用程式接近記憶體限制,異常原因很可能是記憶體不足。 在這種情況下,我們建議你釋放記憶體再試一次。