DataConnectionProperties.IDictionary.Add Method

Adds an element as a key/value pair to the specified IDictionary.

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

Syntax

'宣言
Private Sub Add ( _
    key As Object, _
    value As Object _
) Implements IDictionary.Add
'使用
Dim instance As DataConnectionProperties
Dim key As Object
Dim value As Object

CType(instance, IDictionary).Add(key, value)
void IDictionary.Add(
    Object key,
    Object value
)
private:
virtual void Add(
    Object^ key, 
    Object^ value
) sealed = IDictionary::Add
JScript does not support explicit interface implementations.

Parameters

  • key
    Type: System.Object

    The object to use as the key of the element to add to the dictionary.

  • value
    Type: System.Object

    The object to use as the value of the element to add to the dictionary.

Implements

IDictionary.Add(Object, Object)

Remarks

This method provides an implementation of the Add method. For more information see the Add method in the .NET Framework class library.

Permissions

See Also

Reference

DataConnectionProperties Class

DataConnectionProperties Members

Microsoft.VisualStudio.Data Namespace