BitmapImage.CloneCurrentValue 方法

定义

创建此 BitmapImage 对象的可修改克隆,从而生成此对象的当前值的深层副本。 不会复制资源引用、数据绑定和动画,而是复制其当前值。

public:
 System::Windows::Media::Imaging::BitmapImage ^ CloneCurrentValue();
public System.Windows.Media.Imaging.BitmapImage CloneCurrentValue();
override this.CloneCurrentValue : unit -> System.Windows.Media.Imaging.BitmapImage
Public Function CloneCurrentValue () As BitmapImage

返回

当前对象的可修改克隆。 即使源IsFrozen的属性为 .,克隆对象的false属性IsFrozen也是如此true

注解

此方法用于生成冻结 Freezable 对象(或任何 Freezable 对象)的可修改副本。 为方便起见,此方法会隐藏继承的版本。

有关详细信息,请参阅 Freezable.CloneCurrentValue

适用于

另请参阅