Kommentar
Åtkomst till den här sidan kräver auktorisering. Du kan prova att logga in eller ändra kataloger.
Åtkomst till den här sidan kräver auktorisering. Du kan prova att ändra kataloger.
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.StringName 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
- 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.