BitmapSource.CheckIfSiteOfOrigin 方法

定義

檢查點陣圖來源內容是否來自已知的來源網站。Checks whether the bitmap source content is from a known site of origin. 這個方法可用來確定像素複製作業是安全的。This method is used to make sure that pixel copying operations are safe.

protected:
 void CheckIfSiteOfOrigin();
[System.Security.SecurityCritical]
[System.Security.SecurityTreatAsSafe]
protected void CheckIfSiteOfOrigin ();
member this.CheckIfSiteOfOrigin : unit -> unit
Protected Sub CheckIfSiteOfOrigin ()
屬性

備註

只有在從來源網站或在 pack: 中定義的 Uri 傳遞時,這個方法才會成功。This method only succeeds if it is passed a Uri that is from a site of origin or that is defined in a pack:. 在所有其他情況下,這個方法將會失敗。In all other conditions, this method will fail.

適用於