ISessionController.CreateSession(SqlConnectionInfo, String, String) Method

Definition

在提供的 Xml 上创建新的优化会话对象。Creates a new tuning session object on Xml provided.

public:
 void CreateSession(Microsoft::SqlServer::Management::Common::SqlConnectionInfo ^ connectionInfo, System::String ^ sessionName, System::String ^ sessionXml);
public void CreateSession (Microsoft.SqlServer.Management.Common.SqlConnectionInfo connectionInfo, string sessionName, string sessionXml);
abstract member CreateSession : Microsoft.SqlServer.Management.Common.SqlConnectionInfo * string * string -> unit
Public Sub CreateSession (connectionInfo As SqlConnectionInfo, sessionName As String, sessionXml As String)

Parameters

connectionInfo
SqlConnectionInfo

服务器连接信息。A server connection info.

sessionName
String

一个表示会话名称的 String 字符串。A String string that represents the name of the session.

sessionXml
String

XML 格式的会话定义。A session definition in Xml format.

Applies to