AgentProfile Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
- 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
- connectionContext
- ServerConnection
A ServerConnection object that specifies a connection to an instance of SQL Server that is a Distributor.