AgentProfile 建構函式

定義

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

多載

AgentProfile()

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

AgentProfile(Int32, ServerConnection)

初始化具有指定的代理程式設定檔識別碼值和伺服器連線之 AgentProfile 類別的新執行個體。

AgentProfile(String, ServerConnection)

初始化具有指定的設定檔名稱和伺服器連線之 AgentProfile 類別的新執行個體。

AgentProfile()

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

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

適用於

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)

參數

profileID
Int32

可唯一識別代理程式設定檔的 Int32 值。

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)

參數

name
String

指定代理程式設定檔名稱的 String 值。

connectionContext
ServerConnection

ServerConnection物件,指定與散發者之 SQL Server 實例的連接。

適用於