AgentProfile 建構函式
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
初始化 AgentProfile 類別的新執行個體。
多載
| 名稱 | Description |
|---|---|
| AgentProfile() |
初始化 AgentProfile 類別的新執行個體。 |
| AgentProfile(Int32, ServerConnection) |
初始化一個擁有指定代理設定檔 ID 值及伺服器連線的新類別實例 AgentProfile 。 |
| AgentProfile(String, ServerConnection) |
初始化一個以指定設定檔名稱和伺服器連線的新類別實例 AgentProfile 。 |
AgentProfile()
AgentProfile(Int32, ServerConnection)
初始化一個擁有指定代理設定檔 ID 值及伺服器連線的新類別實例 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 Server 實例連接的物件。
適用於
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 實例,該實例是 Distributor。