Udostępnij za pośrednictwem


Metoda ReplicationServer.EnumAgentProfiles

Zwraca obsługiwane profile wydajności agent replikacja na serwerze.

Przestrzeń nazw:  Microsoft.SqlServer.Replication
Zestaw:  Microsoft.SqlServer.Rmo (w Microsoft.SqlServer.Rmo.dll)

Składnia

'Deklaracja
Public Function EnumAgentProfiles ( _
    agentType As AgentType _
) As ArrayList
'Użycie
Dim instance As ReplicationServer
Dim agentType As AgentType
Dim returnValue As ArrayList

returnValue = instance.EnumAgentProfiles(agentType)
public ArrayList EnumAgentProfiles(
    AgentType agentType
)
public:
ArrayList^ EnumAgentProfiles(
    AgentType agentType
)
member EnumAgentProfiles : 
        agentType:AgentType -> ArrayList 
public function EnumAgentProfiles(
    agentType : AgentType
) : ArrayList

Parametry

Wartość zwracana

Typ: System.Collections.ArrayList
ArrayList z AgentProfile obiektów.

Uwagi

EnumAgentProfiles Metoda może być wywoływana tylko przez członków sysadmin stała rola serwera lub członkami replmonitor stałej bazy danych roli.

EnumAgentProfiles Metoda jest równoważna wykonywanie sp_help_agent_profile (języka Transact-SQL)procedura składowana.

Ten obszar nazw, klasy lub element członkowski jest obsługiwany tylko w wersja 2.0.NET Framework.