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
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.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. |
.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.