AdoDotNetObjectEnumerator Class
Provides an implementation of the DataObjectEnumerator class using the ADO.NET GetSchema API.
Inheritance Hierarchy
System.Object
Microsoft.VisualStudio.Data.ObjectWithSite
Microsoft.VisualStudio.Data.DataObjectEnumerator
Microsoft.VisualStudio.Data.AdoDotNet.AdoDotNetObjectEnumerator
Namespace: Microsoft.VisualStudio.Data.AdoDotNet
Assembly: Microsoft.VisualStudio.Data (in Microsoft.VisualStudio.Data.dll)
Syntax
'Declaración
<GuidAttribute("9EEA02EB-4328-456b-B1B3-83EC5A942C16")> _
Public Class AdoDotNetObjectEnumerator _
Inherits DataObjectEnumerator
[GuidAttribute("9EEA02EB-4328-456b-B1B3-83EC5A942C16")]
public class AdoDotNetObjectEnumerator : DataObjectEnumerator
[GuidAttribute(L"9EEA02EB-4328-456b-B1B3-83EC5A942C16")]
public ref class AdoDotNetObjectEnumerator : public DataObjectEnumerator
[<GuidAttribute("9EEA02EB-4328-456b-B1B3-83EC5A942C16")>]
type AdoDotNetObjectEnumerator =
class
inherit DataObjectEnumerator
end
public class AdoDotNetObjectEnumerator extends DataObjectEnumerator
The AdoDotNetObjectEnumerator type exposes the following members.
Constructors
Name | Description | |
---|---|---|
AdoDotNetObjectEnumerator | Class constructor. Instantiates a new instance of the AdoDotNetObjectEnumerator class. |
Top
Properties
Name | Description | |
---|---|---|
Connection | Retrieves the current data connection. (Inherited from DataObjectEnumerator.) | |
Site | Retrieves or sets the object site. (Inherited from ObjectWithSite.) |
Top
Methods
Name | Description | |
---|---|---|
EnumerateObjects | Enumerates items for a set of data objects of the specified type with the specified restrictions and sort string, if supported. (Overrides DataObjectEnumerator.EnumerateObjects(String, array<Object[], array<Object[], String, array<Object[]).) | |
Equals | Determines whether the specified Object is equal to the current Object. (Inherited from Object.) | |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
OnSiteChanged | Raises the SiteChanged event. (Inherited from ObjectWithSite.) | |
ToString | Returns a string that represents the current object. (Inherited from Object.) |
Top
Events
Name | Description | |
---|---|---|
SiteChanged | Event that is raised when the Site property is changed. (Inherited from ObjectWithSite.) |
Top
Explicit Interface Implementations
Name | Description | |
---|---|---|
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.) | |
IObjectWithSite.SetSite | Provides the site's pointer to the site object. (Inherited from ObjectWithSite.) |
Top
Remarks
It is not expected that a data provider based on ADO.NET will need to customize object enumeration. However, this class provides a managed base class that can be extended in case extra or modified enumeration functionality is required inside Visual Studio.
The EnumerateObjects method takes in its parameter array a single string that specifies the name of the ADO.NET schema collection to enumerate.
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.