ReplicationServer.EnumAgentProfiles(AgentType) Metode

Definisi

Mengembalikan profil performa agen replikasi yang didukung di server.

public:
 System::Collections::ArrayList ^ EnumAgentProfiles(Microsoft::SqlServer::Replication::AgentType agentType);
public System.Collections.ArrayList EnumAgentProfiles (Microsoft.SqlServer.Replication.AgentType agentType);
member this.EnumAgentProfiles : Microsoft.SqlServer.Replication.AgentType -> System.Collections.ArrayList
Public Function EnumAgentProfiles (agentType As AgentType) As ArrayList

Parameter

agentType
AgentType

Nilai AgentType enumerasi yang menunjukkan jenis profil agen yang akan dikembalikan.

Mengembalikan

Objek ArrayListAgentProfile .

Keterangan

Metode EnumAgentProfiles ini hanya dapat dipanggil oleh anggota peran server tetap sysadmin atau anggota peran database tetap replmonitor.

Metode EnumAgentProfiles ini setara dengan menjalankan prosedur tersimpan sp_help_agent_profile (Transact-SQL ).

Berlaku untuk