SqlClientFactory Class  
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Represents a set of methods for creating instances of the System.Data.SqlClient provider's implementation of the data source classes.
public ref class SqlClientFactory sealed : System::Data::Common::DbProviderFactorypublic ref class SqlClientFactory sealed : System::Data::Common::DbProviderFactory, IServiceProviderpublic sealed class SqlClientFactory : System.Data.Common.DbProviderFactorypublic sealed class SqlClientFactory : System.Data.Common.DbProviderFactory, IServiceProvidertype SqlClientFactory = class
    inherit DbProviderFactorytype SqlClientFactory = class
    inherit DbProviderFactory
    interface IServiceProviderPublic NotInheritable Class SqlClientFactory
Inherits DbProviderFactoryPublic NotInheritable Class SqlClientFactory
Inherits DbProviderFactory
Implements IServiceProvider- Inheritance
- Implements
Fields
| Instance | Gets an instance of the SqlClientFactory. This can be used to retrieve strongly typed data objects. | 
Properties
| CanCreateDataSourceEnumerator | Gets a value that indicates whether a SqlDataSourceEnumerator can be created. | 
Methods
| CreateCommand() | Returns a strongly typed DbCommand instance. | 
| CreateCommandBuilder() | Returns a strongly typed DbCommandBuilder instance. | 
| CreateConnection() | Returns a strongly typed DbConnection instance. | 
| CreateConnectionStringBuilder() | Returns a strongly typed DbConnectionStringBuilder instance. | 
| CreateDataAdapter() | Returns a strongly typed DbDataAdapter instance. | 
| CreateDataSourceEnumerator() | Returns a new SqlDataSourceEnumerator. | 
| CreateParameter() | Returns a strongly typed DbParameter instance. | 
| CreatePermission(PermissionState) | Returns a new CodeAccessPermission. | 
| Equals(Object) | Determines whether the specified object is equal to the current object.(Inherited from Object) | 
| GetHashCode() | Serves as the default hash function.(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) | 
| ToString() | Returns a string that represents the current object.(Inherited from Object) | 
Explicit Interface Implementations
| IServiceProvider.GetService(Type) | For a description of this member, see GetService(Type). |