AgentProfile 建構函式
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
初始化 AgentProfile 類別的新執行個體。
多載
| AgentProfile() |
初始化 AgentProfile 類別的新執行個體。 |
| AgentProfile(Int32, ServerConnection) |
初始化具有指定的代理程式設定檔識別碼值和伺服器連線之 AgentProfile 類別的新執行個體。 |
| AgentProfile(String, ServerConnection) |
初始化具有指定的設定檔名稱和伺服器連線之 AgentProfile 類別的新執行個體。 |
AgentProfile()
AgentProfile(Int32, ServerConnection)
初始化具有指定的代理程式設定檔識別碼值和伺服器連線之 AgentProfile 類別的新執行個體。
public:
AgentProfile(int profileID, Microsoft::SqlServer::Management::Common::ServerConnection ^ connectionContext);
public AgentProfile (int profileID, Microsoft.SqlServer.Management.Common.ServerConnection connectionContext);
new Microsoft.SqlServer.Replication.AgentProfile : int * Microsoft.SqlServer.Management.Common.ServerConnection -> Microsoft.SqlServer.Replication.AgentProfile
Public Sub New (profileID As Integer, connectionContext As ServerConnection)
參數
- connectionContext
- ServerConnection
ServerConnection物件,指定 MicrosoftSQL 伺服器實例的連接。
適用於
AgentProfile(String, ServerConnection)
初始化具有指定的設定檔名稱和伺服器連線之 AgentProfile 類別的新執行個體。
public:
AgentProfile(System::String ^ name, Microsoft::SqlServer::Management::Common::ServerConnection ^ connectionContext);
public AgentProfile (string name, Microsoft.SqlServer.Management.Common.ServerConnection connectionContext);
new Microsoft.SqlServer.Replication.AgentProfile : string * Microsoft.SqlServer.Management.Common.ServerConnection -> Microsoft.SqlServer.Replication.AgentProfile
Public Sub New (name As String, connectionContext As ServerConnection)
參數
- connectionContext
- ServerConnection
ServerConnection物件,指定與散發者之 SQL Server 實例的連接。