Share via


DataProvider.SupportsObject Method (Type)

Retrieves a Boolean value that indicates whether a particular object type is supported by the provider.

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

Syntax

'Declaration
Public Function SupportsObject ( _
    objType As Type _
) As Boolean
public bool SupportsObject(
    Type objType
)
public:
bool SupportsObject(
    Type^ objType
)
member SupportsObject : 
        objType:Type -> bool
public function SupportsObject(
    objType : Type
) : boolean

Parameters

  • objType
    Type: System.Type

    Data type of the specified object.

Return Value

Type: System.Boolean
Returns true if a particular object type is supported by the provider; otherwise returns false.

Exceptions

Exception Condition
ArgumentNullException

The objType parameter is null.

Remarks

This method queries the registry to find out whether a particular object type is supported by the data provider. Calling this method allows a client to find out the capabilities of the provider without having to load the provider's code.

.NET Framework Security

See Also

Reference

DataProvider Class

SupportsObject Overload

Microsoft.VisualStudio.Data Namespace

SupportsObject

CreateObject