SqlConnectionStringBuilder.Authentication Property
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.
Gets or sets the authentication method used for Connecting to SQL Database By Using Azure Active Directory Authentication.
public:
property Microsoft::Data::SqlClient::SqlAuthenticationMethod Authentication { Microsoft::Data::SqlClient::SqlAuthenticationMethod get(); void set(Microsoft::Data::SqlClient::SqlAuthenticationMethod value); };
C#
public Microsoft.Data.SqlClient.SqlAuthenticationMethod Authentication { get; set; }
member this.Authentication : Microsoft.Data.SqlClient.SqlAuthenticationMethod with get, set
Public Property Authentication As SqlAuthenticationMethod
The authentication method of the connection string.
For more information, see Using Azure Active Directory authentication with SqlClient.
Product | Versions |
---|---|
SqlClient .NET Core | 1.0, 1.1, 2.0, 2.1, 3.0, 3.1, 4.0, 4.1, 5.0, 5.1, 5.2 |
SqlClient .NET Framework | 1.0, 1.1, 2.0, 2.1, 3.0, 3.1, 4.0, 4.1, 5.0, 5.1, 5.2 |
SqlClient .NET Standard | 1.0, 1.1, 2.0, 2.1, 3.0, 3.1, 4.0, 4.1, 5.0, 5.1, 5.2 |