Bagikan melalui


AgentProfile Konstruktor

Definisi

Menginisialisasi instans baru kelas AgentProfile.

Overload

AgentProfile()

Menginisialisasi instans baru kelas AgentProfile.

AgentProfile(Int32, ServerConnection)

Menginisialisasi instans AgentProfile baru kelas dengan nilai ID profil agen dan koneksi server tertentu.

AgentProfile(String, ServerConnection)

Menginisialisasi instans AgentProfile baru kelas dengan nama profil dan koneksi server yang ditentukan.

AgentProfile()

Menginisialisasi instans baru kelas AgentProfile.

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

Berlaku untuk

AgentProfile(Int32, ServerConnection)

Menginisialisasi instans AgentProfile baru kelas dengan nilai ID profil agen dan koneksi server tertentu.

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)

Parameter

profileID
Int32

Nilai Int32 yang secara unik mengidentifikasi profil agen.

connectionContext
ServerConnection

Objek ServerConnection yang menentukan koneksi ke instans MicrosoftSQL Server.

Berlaku untuk

AgentProfile(String, ServerConnection)

Menginisialisasi instans AgentProfile baru kelas dengan nama profil dan koneksi server yang ditentukan.

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)

Parameter

name
String

String Nilai yang menentukan nama profil agen.

connectionContext
ServerConnection

Objek ServerConnection yang menentukan koneksi ke instans SQL Server yang merupakan Distributor.

Berlaku untuk