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 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, который является распространителем.

Применяется к