Compartir a través de


DataProviderObjectFactory Class

Allows you to create data objects implemented by a DDEX provider.

Inheritance Hierarchy

System.Object
  Microsoft.VisualStudio.Data.ObjectWithSite
    Microsoft.VisualStudio.Data.DataProviderObjectFactory
      Microsoft.VisualStudio.Data.AdoDotNet.AdoDotNetProviderObjectFactory

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

Syntax

'Declaración
Public MustInherit Class DataProviderObjectFactory _
    Inherits ObjectWithSite
public abstract class DataProviderObjectFactory : ObjectWithSite
public ref class DataProviderObjectFactory abstract : public ObjectWithSite
[<AbstractClass>]
type DataProviderObjectFactory =  
    class
        inherit ObjectWithSite
    end
public abstract class DataProviderObjectFactory extends ObjectWithSite

The DataProviderObjectFactory type exposes the following members.

Constructors

  Name Description
Protected method DataProviderObjectFactory Class constructor. Initializes an instance of the DataProviderObjectFactory class.

Top

Properties

  Name Description
Protected property DataProvider Retrieves the DDEX provider for which this class creates objects.
Public property Site Retrieves or sets the object site. (Inherited from ObjectWithSite.)

Top

Methods

  Name Description
Public method CreateObject Creates a data-provider-written object that implements the specified object type.
Public method Equals Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public method GetAssembly Locates an assembly given an assembly string.
Public method GetHashCode Serves as a hash function for a particular type. (Inherited from Object.)
Public method GetType() Gets the Type of the current instance. (Inherited from Object.)
Public method GetType(String) Retrieves a type definition given a type name.
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Protected method OnSiteChanged Raises the SiteChanged event. (Inherited from ObjectWithSite.)
Public method ToString Returns a string that represents the current object. (Inherited from Object.)

Top

Events

  Name Description
Public event SiteChanged Event that is raised when the Site property is changed. (Inherited from ObjectWithSite.)

Top

Explicit Interface Implementations

  Name Description
Explicit interface implemetationPrivate method IObjectWithSite.GetSite Retrieves the last site set using the IObjectWithSite.SetSite method. In cases where there is no known site, the object returns an exception. (Inherited from ObjectWithSite.)
Explicit interface implemetationPrivate method IObjectWithSite.SetSite Provides the site's pointer to the site object. (Inherited from ObjectWithSite.)

Top

Remarks

Classes derived from DataProviderObjectFactory should implement the M:Microsoft.VisualStudio.Data.DataProviderObjectFactory.CreateObject(System.Type) method to create provider-written objects that implement the specified object type. Such classes can use the P:Microsoft.VisualStudio.Data.DataProviderObjectFactory.DataProvider property to retrieve information about the data provider for which it is creating objects. This is most useful when a derived class is a base class for a particular technology like ADO.NET.

The DataProviderObjectFactory class servers as the root class, architecturally, for establishing a data extensibility framework.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

Microsoft.VisualStudio.Data Namespace