SqlConnectionStringBuilder.ApplicationIntent 属性
定义
连接到 SQL Server 可用性组中的数据库时声明应用程序工作负荷类型。Declares the application workload type when connecting to a database in an SQL Server Availability Group. 您可以使用 ApplicationIntent 设置此属性的值。You can set the value of this property with ApplicationIntent. 有关对 Always On 可用性组的 SqlClient 支持的详细信息,请参阅对高可用性、灾难恢复的 SqlClient 支持。For more information about SqlClient support for Always On Availability Groups, see SqlClient Support for High Availability, Disaster Recovery.
public:
property System::Data::SqlClient::ApplicationIntent ApplicationIntent { System::Data::SqlClient::ApplicationIntent get(); void set(System::Data::SqlClient::ApplicationIntent value); };
public System.Data.SqlClient.ApplicationIntent ApplicationIntent { get; set; }
member this.ApplicationIntent : System.Data.SqlClient.ApplicationIntent with get, set
Public Property ApplicationIntent As ApplicationIntent
属性值
返回该属性的当前值(类型 ApplicationIntent 的值)。Returns the current value of the property (a value of type ApplicationIntent).