語言

AgentProfile 建構函式

定義

初始化 AgentProfile 類別的新執行個體。

多載

名稱 Description
AgentProfile()

初始化 AgentProfile 類別的新執行個體。

AgentProfile(Int32, ServerConnection)

初始化一個擁有指定代理設定檔 ID 值及伺服器連線的新類別實例 AgentProfile 。

AgentProfile(String, ServerConnection)

初始化一個以指定設定檔名稱和伺服器連線的新類別實例 AgentProfile 。

AgentProfile()

初始化 AgentProfile 類別的新執行個體。

public:
 AgentProfile();
public AgentProfile();
Public Sub New ()

適用於

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)

參數

profileID
Int32

一個 Int32 唯一識別代理人資料的值。

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)

參數

name
String

一個 String 指定代理人設定檔名稱的值。

connectionContext
ServerConnection

一個ServerConnection物件,指定連接到一個 SQL Server 實例,該實例是 Distributor。

適用於