SqlAuthenticationProvider 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.
Defines the core behavior of authentication providers and provides a base class for derived classes.
For new development, use Microsoft.Data.SqlClient. This page documents System.Data.SqlClient.
public ref class SqlAuthenticationProvider abstract
public abstract class SqlAuthenticationProvider
type SqlAuthenticationProvider = class
Public MustInherit Class SqlAuthenticationProvider
- Inheritance
-
SqlAuthenticationProvider
Remarks
Derived classes must provide a parameterless constructor if they can be instantiated from the app.config file.
Constructors
| Name | Description |
|---|---|
| SqlAuthenticationProvider() |
Called from constructors in derived classes to initialize the SqlAuthenticationProvider class. For new development, use Microsoft.Data.SqlClient. This page documents System.Data.SqlClient. |
Methods
| Name | Description |
|---|---|
| AcquireTokenAsync(SqlAuthenticationParameters) |
Acquires a security token from the authority. For new development, use Microsoft.Data.SqlClient. This page documents System.Data.SqlClient. |
| BeforeLoad(SqlAuthenticationMethod) |
This method is called immediately before the provider is added to SQL drivers registry. For new development, use Microsoft.Data.SqlClient. This page documents System.Data.SqlClient. |
| BeforeUnload(SqlAuthenticationMethod) |
This method is called immediately before the provider is removed from the SQL drivers registry. For new development, use Microsoft.Data.SqlClient. This page documents System.Data.SqlClient. |
| 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) |
| GetProvider(SqlAuthenticationMethod) |
Gets an authentication provider by method. For new development, use Microsoft.Data.SqlClient. This page documents System.Data.SqlClient. |
| GetType() |
Gets the Type of the current instance. (Inherited from Object) |
| IsSupported(SqlAuthenticationMethod) |
Indicates whether the specified authentication method is supported. For new development, use Microsoft.Data.SqlClient. This page documents System.Data.SqlClient. |
| MemberwiseClone() |
Creates a shallow copy of the current Object. (Inherited from Object) |
| SetProvider(SqlAuthenticationMethod, SqlAuthenticationProvider) |
Sets an authentication provider by method. For new development, use Microsoft.Data.SqlClient. This page documents System.Data.SqlClient. |
| ToString() |
Returns a string that represents the current object. (Inherited from Object) |