BitmapSource.CloneCore(Freezable) 方法

定義

使這個執行個體成為指定之 BitmapSource 的深層複本。Makes this instance a deep copy of the specified BitmapSource. 當複製相依性屬性時,這個方法會複製資源參考和資料繫結 (但可能無法再解析),但不會複製動畫或它們目前的值。When copying dependency properties, this method copies resource references and data bindings (but they might no longer resolve) but not animations or their current values.

protected:
 override void CloneCore(System::Windows::Freezable ^ sourceFreezable);
protected override void CloneCore (System.Windows.Freezable sourceFreezable);
override this.CloneCore : System.Windows.Freezable -> unit
Protected Overrides Sub CloneCore (sourceFreezable As Freezable)

參數

sourceFreezable
Freezable

要複製的 BitmapSourceThe BitmapSource to clone.

備註

這個方法是由 Clone 方法所呼叫,不應直接從程式碼呼叫,除非您在覆寫這個方法時呼叫基底執行。This method is called by the Clone method and should not be called directly from your code, except when you call the base implementation while overriding this method. 若要建立目前物件的可修改複本,請呼叫 Clone,而不是直接呼叫此方法。To create a modifiable copy of the current object, call Clone instead of calling this method directly.

如需詳細資訊,請參閱Freezable.CloneCoreFor more information, see Freezable.CloneCore.

適用於

另請參閱