다음을 통해 공유


PropertyCollection.RemoveProperty Method

Removes the property associated with the specified key.

Namespace:  Microsoft.VisualStudio.Utilities
Assembly:  Microsoft.VisualStudio.CoreUtility (in Microsoft.VisualStudio.CoreUtility.dll)

Syntax

'Declaration
Public Function RemoveProperty ( _
    key As Object _
) As Boolean
public bool RemoveProperty(
    Object key
)
public:
bool RemoveProperty(
    Object^ key
)
member RemoveProperty : 
        key:Object -> bool
public function RemoveProperty(
    key : Object
) : boolean

Parameters

  • key
    Type: Object

    The key of the property to remove.

Return Value

Type: Boolean
true if the property was found and removed, false if the property was not found.

Exceptions

Exception Condition
ArgumentNullException

key is nulla null reference (Nothing in Visual Basic).

.NET Framework Security

See Also

Reference

PropertyCollection Class

Microsoft.VisualStudio.Utilities Namespace