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.
Retrieves a Boolean value indicating whether a specified property is contained in this data source information instance.
Namespace:  Microsoft.VisualStudio.Data.Framework
Assembly:  Microsoft.VisualStudio.Data.Framework (in Microsoft.VisualStudio.Data.Framework.dll)
Syntax
'Declaration
Public Function Contains ( _
    propertyName As String _
) As Boolean
public bool Contains(
    string propertyName
)
public:
virtual bool Contains(
    String^ propertyName
) sealed
abstract Contains : 
        propertyName:string -> bool  
override Contains : 
        propertyName:string -> bool
public final function Contains(
    propertyName : String
) : boolean
Parameters
- propertyName 
 Type: System.String- The name of the property being tested. 
Return Value
Type: System.Boolean
true if the specified property is contained in this data source information instance; otherwise, false.
Implements
IVsDataSourceInformation.Contains(String)
Exceptions
| Exception | Condition | 
|---|---|
| ArgumentNullException | The propertyName parameter is nulla null reference (Nothing in Visual Basic). | 
Remarks
It is recommended that clients call this method before actually retrieving a value because this may save retrieval of a value until it is actually needed.
.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.