DataProviderManager.ICollection<DataProvider>.Remove Method

Removes a DDEX provider from the set of providers.

Namespace:  Microsoft.VisualStudio.Data
Assembly:  Microsoft.VisualStudio.Data (in Microsoft.VisualStudio.Data.dll)

Syntax

'宣言
Private Function Remove ( _
    item As DataProvider _
) As Boolean Implements ICollection(Of DataProvider).Remove
'使用
Dim instance As DataProviderManager
Dim item As DataProvider
Dim returnValue As Boolean

returnValue = CType(instance, ICollection(Of DataProvider)).Remove(item)
bool ICollection<DataProvider>.Remove(
    DataProvider item
)
private:
virtual bool Remove(
    DataProvider^ item
) sealed = ICollection<DataProvider^>::Remove
JScript does not support explicit interface implementations.

Parameters

Return Value

Type: System.Boolean

Returns an ICollection object instance containing the set of DDEX providers.

Implements

ICollection<T>.Remove(T)

Exceptions

Exception Condition
InvalidOperationException

Always thrown.

Remarks

Provides an implementation of the Remove method.

Note   This method is read-only for clients and therefore throws an InvalidOperationException if used in client code. Rather, the implementation reads from the registry and populates the collection.

Permissions

See Also

Reference

DataProviderManager Class

DataProviderManager Members

Microsoft.VisualStudio.Data Namespace