SqlConnectionStringBuilder.ApplicationIntent Property

Definition

Declares the application workload type when connecting to a database in an SQL Server Availability Group. You can set the value of this property with ApplicationIntent. For more information about SqlClient support for Always On Availability Groups, see SqlClient Support for High Availability, Disaster Recovery.

public:
 property Microsoft::Data::SqlClient::ApplicationIntent ApplicationIntent { Microsoft::Data::SqlClient::ApplicationIntent get(); void set(Microsoft::Data::SqlClient::ApplicationIntent value); };
public Microsoft.Data.SqlClient.ApplicationIntent ApplicationIntent { get; set; }
member this.ApplicationIntent : Microsoft.Data.SqlClient.ApplicationIntent with get, set
Public Property ApplicationIntent As ApplicationIntent

Property Value

Returns the current value of the property.

Remarks

This property corresponds to the "Application Intent" and "ApplicationIntent" keys within the connection string.

The default value is ApplicationIntent.ReadWrite.

Applies to

See also