Freezable.FreezeCore(Boolean) Yöntem
Tanım
protected:
virtual bool FreezeCore(bool isChecking);
protected virtual bool FreezeCore (bool isChecking);
abstract member FreezeCore : bool -> bool
override this.FreezeCore : bool -> bool
Protected Overridable Function FreezeCore (isChecking As Boolean) As Boolean
Parametreler
- isChecking
- Boolean
true
nesnenin dondurulmuş olup olmadığını (gerçekten dondurmadan) belirten bir göstergesi döndürmek için; false
nesneyi gerçekten dondurmak için.true
to return an indication of whether the object can be frozen (without actually freezing it); false
to actually freeze the object.
Döndürülenler
isChecking
İse, true
Bu yöntem true
, Freezable değiştirilemez olarak yapılırsa veya false
değiştirilemeyen olarak yapılmamıyor.If isChecking
is true
, this method returns true
if the Freezable can be made unmodifiable, or false
if it cannot be made unmodifiable. Eğer isChecking
ise, false
Bu yöntem true
, Eğer Eğer Eğer Eğer Eğer Eğer Eğer Eğer Eğer Eğer Eğer Eğer Freezable false
değişiklik yapılmal ise veya değiştirilemeyen ise, öğesini döndürür.If isChecking
is false
, this method returns true
if the if the specified Freezable is now unmodifiable, or false
if it cannot be made unmodifiable.
Açıklamalar
Bu yöntemi doğrudan çağırmayın (bir uygulamada temel çağırılırken hariç).Do not call this method directly (except when calling base in an implementation). Bu yöntem, CanFreeze Özelliği ( isChecking
eşittir ile true
) ve Freeze Yöntemi ( isChecking
eşittir ile false
) tarafından dahili olarak çağrılır.This method is called internally by the CanFreeze property (with isChecking
equal to true
) and the Freeze method (with isChecking
equal to false
).
Devralanlara Notlar
Freezable sınıf, bağımlılık özellikleri kullanılarak depolanmayan verileri içerdiğinde uygulayıcıları bu yöntemi geçersiz kılmalıdır. Freezable implementers must override this method when the class contains data that is not stored using dependency properties.Tipik bir uygulama temel çağırır ve sonra, Freeze(Freezable, Boolean) Freezable true
yalnızca tüm özellikler donuktur (veya ' i belirtmek durumunda dondurulmuş olabilir) ' i döndüren tüm tür özelliklerde statik yöntemi çağırır true
isChecking
.A typical implementation would call base, then call the static Freeze(Freezable, Boolean) method on all Freezable typed properties that the class contains, returning true
only if all properties were frozen (or could have been frozen, in the case of specifying true
for isChecking
).