Konstruktor AgentProfile (String, ServerConnection)
Inicjuje nowe wystąpienie AgentProfile klasy z profilu określona nazwa oraz serwer połączenia.
Przestrzeń nazw: Microsoft.SqlServer.Replication
Zestaw: Microsoft.SqlServer.Rmo (w Microsoft.SqlServer.Rmo.dll)
Składnia
'Deklaracja
Public Sub New ( _
name As String, _
connectionContext As ServerConnection _
)
'Użycie
Dim name As String
Dim connectionContext As ServerConnection
Dim instance As New AgentProfile(name, connectionContext)
public AgentProfile(
string name,
ServerConnection connectionContext
)
public:
AgentProfile(
String^ name,
ServerConnection^ connectionContext
)
new :
name:string *
connectionContext:ServerConnection -> AgentProfile
public function AgentProfile(
name : String,
connectionContext : ServerConnection
)
Parametry
- name
Typ: System.String
A String wartość, która określa nazwę profilu agenta.
- connectionContext
Typ: Microsoft.SqlServer.Management.Common.ServerConnection
A ServerConnection , który określa połączenie z wystąpienie obiektu SQL Server jest dystrybutorem.
Uwagi
Ten obszar nazw, klasy lub element członkowski jest obsługiwany tylko w.NET Framework 2.0.
Zobacz także