Partager via


DataProvider.SupportsObject, méthode (Guid, Type)

Indique si un fournisseur donné de DDEX prend un objet du type spécifié, potentiellement une version spécialisée pour la source de données spécifiée.

Espace de noms :  Microsoft.VisualStudio.Data
Assembly :  Microsoft.VisualStudio.Data (dans Microsoft.VisualStudio.Data.dll)

Syntaxe

'Déclaration
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

Paramètres

  • dataSource
    Type : Guid

    Une source de données GUID de DDEX.

  • objType
    Type : Type

    Type de données d'objet pour lequel découvre la capacité de charge.

Valeur de retour

Type : Boolean
Retourne true si le fournisseur de DDEX prend un objet du type spécifié ; sinon retourne false.

Exceptions

Exception Condition
ArgumentNullException

Le paramètre objType est null.

Sécurité .NET Framework

Voir aussi

Référence

DataProvider Classe

SupportsObject, surcharge

Microsoft.VisualStudio.Data, espace de noms

CreateObject