Partager via


DataConnectionProperties.Add Method

Adds a new property to the current connection properties collection.

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

Syntax

'Declaration
Public Overridable Sub Add ( _
    propertyName As String _
)
public virtual void Add(
    string propertyName
)
public:
virtual void Add(
    String^ propertyName
)
abstract Add : 
        propertyName:string -> unit  
override Add : 
        propertyName:string -> unit
public function Add(
    propertyName : String
)

Parameters

  • propertyName
    Type: System.String

    Name of the property being added.

Implements

IDataConnectionProperties.Add(String)

Exceptions

Exception Condition
ArgumentNullException

The propertyName parameter is null.

InvalidOperationException

The connection properties are not extensible.

.NET Framework Security

See Also

Reference

DataConnectionProperties Class

Microsoft.VisualStudio.Data Namespace