PropertyMetadata.IsSealed Property
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.
Gets a value that indicates whether the PropertyMetadata has been applied to a property resulting in the immutable state.
protected:
property bool IsSealed { bool get(); };
protected bool IsSealed { get; }
member this.IsSealed : bool
Protected ReadOnly Property IsSealed As Boolean
Property Value
true
if the PropertyMetadata is immutable; otherwise, false
.
Remarks
When the PropertyMetadata.IsSealed is equal to true
, the following operations cause a InvalidOperationException to be raised:
Attempting to set the DefaultValue.
Attempting to set the Options.
Attempting to set the SetValueOverride.
Attempting to set the GetValueOverride.
Applies to
Geri Bildirim
https://aka.ms/ContentUserFeedback.
Çok yakında: 2024 boyunca, içerik için geri bildirim mekanizması olarak GitHub Sorunları’nı kullanımdan kaldıracak ve yeni bir geri bildirim sistemiyle değiştireceğiz. Daha fazla bilgi için bkz.Gönderin ve geri bildirimi görüntüleyin