DataProvider.SupportsObject Method (Guid, Type)

Indicates whether a given DDEX provider supports an object of the specified type, potentially a specialized version for the specified data source.

Namespace:  Microsoft.VisualStudio.Data
Assembly:  Microsoft.VisualStudio.Data (in Microsoft.VisualStudio.Data.dll)

Syntax

'Declaration
Public MustOverride Function SupportsObject ( _
    dataSource As Guid, _
    objType As Type _
) As Boolean
'Usage
Dim instance As DataProvider 
Dim dataSource As Guid 
Dim objType As Type 
Dim returnValue As Boolean 

returnValue = instance.SupportsObject(dataSource, _
    objType)
public abstract bool SupportsObject(
    Guid dataSource,
    Type objType
)
public:
virtual bool SupportsObject(
    Guid dataSource, 
    Type^ objType
) abstract
public abstract function SupportsObject(
    dataSource : Guid, 
    objType : Type
) : boolean

Parameters

  • dataSource
    Type: System.Guid

    A DDEX data source GUID.

  • objType
    Type: System.Type

    Data type of object for which to discover supportability.

Return Value

Type: System.Boolean
Returns true if the DDEX provider supports an object of the specified type; otherwise returns false.

Exceptions

Exception Condition
ArgumentNullException

The objType parameter is null.

.NET Framework Security

See Also

Reference

DataProvider Class

DataProvider Members

SupportsObject Overload

Microsoft.VisualStudio.Data Namespace

CreateObject