Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.