ReplicationServer.EnumAgentProfiles(AgentType) Metode
Definisi
Penting
Beberapa informasi terkait produk prarilis yang dapat diubah secara signifikan sebelum dirilis. Microsoft tidak memberikan jaminan, tersirat maupun tersurat, sehubungan dengan informasi yang diberikan di sini.
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 ).