This documentation is archived and is not being maintained.

ToolboxItem.CheckUnlocked Method

Throws an exception if the toolbox item is currently locked.

[Visual Basic]
Protected Sub CheckUnlocked()
[C#]
protected void CheckUnlocked();
[C++]
protected: void CheckUnlocked();
[JScript]
protected function CheckUnlocked();

Exceptions

Exception Type Condition
InvalidOperationException The ToolboxItem was locked.

Remarks

This method throws an InvalidOperationException if the Locked property of the ToolboxItem is set to true.

Requirements

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

See Also

ToolboxItem Class | ToolboxItem Members | System.Drawing.Design Namespace | InvalidOperationException

Show: