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
public abstract bool SupportsObject(
Guid dataSource,
Type objType
)
public:
virtual bool SupportsObject(
Guid dataSource,
Type^ objType
) abstract
abstract SupportsObject :
dataSource:Guid *
objType:Type -> bool
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
- 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.