Share via


AgentProfile Constructors

Definition

Initializes a new instance of the AgentProfile class.

Overloads

AgentProfile()

Initializes a new instance of the AgentProfile class.

AgentProfile(Int32, ServerConnection)

Initializes a new instance of the AgentProfile class with a specified agent profile ID value and server connection.

AgentProfile(String, ServerConnection)

Initializes a new instance of the AgentProfile class with the specified profile name and server connection.

AgentProfile()

Initializes a new instance of the AgentProfile class.

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

Applies to

AgentProfile(Int32, ServerConnection)

Initializes a new instance of the AgentProfile class with a specified agent profile ID value and server connection.

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)

Parameters

profileID
Int32

An Int32 value that uniquely identifies the agent profile.

connectionContext
ServerConnection

A ServerConnection object that specifies a connection to the instance of MicrosoftSQL Server.

Applies to

AgentProfile(String, ServerConnection)

Initializes a new instance of the AgentProfile class with the specified profile name and server connection.

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)

Parameters

name
String

A String value that specifies the name of an agent profile.

connectionContext
ServerConnection

A ServerConnection object that specifies a connection to an instance of SQL Server that is a Distributor.

Applies to