Share via


AdoDotNetConnectionProperties.Add Method

Adds a new property to the current connection properties collection.

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

Syntax

'Declaration
Public Overrides Sub Add ( _
    propertyName As String _
)
public override void Add(
    string propertyName
)
public:
virtual void Add(
    String^ propertyName
) override
abstract Add : 
        propertyName:string -> unit  
override Add : 
        propertyName:string -> unit
public override 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.

Remarks

Overrides the Add method.

.NET Framework Security

See Also

Reference

AdoDotNetConnectionProperties Class

Microsoft.VisualStudio.Data.AdoDotNet Namespace