DataConnectionProperties.Contains Method
Tests whether a specified property is a member of the current set of connection properties.
Namespace: Microsoft.VisualStudio.Data
Assembly: Microsoft.VisualStudio.Data (in Microsoft.VisualStudio.Data.dll)
Syntax
'Declaration
Public Overridable Function Contains ( _
propertyName As String _
) As Boolean
public virtual bool Contains(
string propertyName
)
public:
virtual bool Contains(
String^ propertyName
)
abstract Contains :
propertyName:string -> bool
override Contains :
propertyName:string -> bool
public function Contains(
propertyName : String
) : boolean
Parameters
propertyName
Type: System.StringName of the property whose presence is being tested.
Return Value
Type: System.Boolean
Returns true if the specified property is a member of the connection properties collection; otherwise returns false.
Implements
IDataConnectionProperties.Contains(String)
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | The propertyName parameter is null. |
.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.