ModelItemDictionary.Remove Method (Object)
[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]
Removes the item from the dictionary.
Namespace: System.Activities.Design.Model
Assembly: System.Activities.Design.Base (in System.Activities.Design.Base.dll)
Syntax
'Declaration
Public MustOverride Function Remove ( _
key As Object _
) As Boolean
'Usage
Dim instance As ModelItemDictionary
Dim key As Object
Dim returnValue As Boolean
returnValue = instance.Remove(key)
public abstract bool Remove(
Object key
)
public:
virtual bool Remove(
Object^ key
) abstract
public abstract function Remove(
key : Object
) : boolean
abstract Remove :
key:Object -> bool
Parameters
- key
Type: System.Object
The item to remove using the key as the search criterion.
Return Value
Type: System.Boolean
true if the item exists; otherwise, false.
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | If the key is nulla null reference (Nothing in Visual Basic). |
InvalidOperationException | If the dictionary is read-only. |
Remarks
This method does nothing if the item does not exist in the collection.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
Platforms
Windows 7, Windows Vista, Windows XP SP2, Windows Server 2008, Windows Server 2003
The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Version Information
.NET Framework
Supported in: 4