FreezableCollection<T>.FreezeCore(Boolean) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Makes this FreezableCollection<T> object unmodifiable or determines whether it can be made unmodifiable.
protected:
override bool FreezeCore(bool isChecking);
protected override bool FreezeCore (bool isChecking);
override this.FreezeCore : bool -> bool
Protected Overrides Function FreezeCore (isChecking As Boolean) As Boolean
Parameters
- isChecking
- Boolean
true
if the FreezableCollection<T> should simply return whether it can be frozen. false
if the FreezableCollection<T> instance should actually freeze itself when this method is called.
Returns
If isChecking
is true
, this method returns true
if this FreezableCollection<T> can be made unmodifiable, or false
if it cannot be made unmodifiable.
If isChecking
is false
, this method returns true
if the if the specified FreezableCollection<T> is now unmodifiable, or false
if it cannot be made unmodifiable, with the side effect of having begun to change the frozen status of this object.
Remarks
Do not call this method directly (except when calling base in an implementation). This method is called internally by CanFreeze (with isChecking
equal to true
) and Freeze (with isChecking
equal to false
).
Notes to Inheritors
For information about when to override this method, see FreezeCore(Boolean).
Applies to
See also
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈