Partager via


BindingBase.CheckSealed Method

Microsoft Silverlight will reach end of support after October 2021. Learn more.

Throws an exception if the binding has already been attached to a binding target.

Namespace:  System.Windows.Data
Assembly:  System.Windows (in System.Windows.dll)

Syntax

'Declaration
Protected Friend Sub CheckSealed
protected internal void CheckSealed()

Exceptions

Exception Condition
InvalidOperationException

The binding has already been attached to a binding target.

Remarks

Call this method in the setters of properties that you add to derived classes when the properties should not be modified after binding occurs.

Version Information

Silverlight

Supported in: 5, 4

Silverlight for Windows Phone

Supported in: Windows Phone OS 7.1

Platforms

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.