AgentProfile.AgentType Properti
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.
Mendapatkan atau mengatur jenis agen replikasi yang profilnya dimaksudkan.
public:
property Microsoft::SqlServer::Replication::AgentType AgentType { Microsoft::SqlServer::Replication::AgentType get(); void set(Microsoft::SqlServer::Replication::AgentType value); };
public Microsoft.SqlServer.Replication.AgentType AgentType { get; set; }
member this.AgentType : Microsoft.SqlServer.Replication.AgentType with get, set
Public Property AgentType As AgentType
Nilai Properti
Nilai AgentType objek yang menentukan jenis agen replikasi.
Pengecualian
Saat Anda mengatur AgentType profil yang sudah ada.
Kapan MiscellaneousAgents atau nilai AgentType lain yang tidak didukung disediakan.
Keterangan
Properti AgentType adalah properti baca/tulis, dan perlu mengatur properti ini sebelum objek dibuat. Setelah profil dibuat pada server, properti ini tidak dapat diubah.
Mengatur nilai MiscellaneousAgents tidak didukung.
AgentType Properti hanya dapat diambil oleh anggota sysadmin peran server tetap di Distributor atau oleh anggota replmonitor peran database tetap.
AgentType Properti hanya dapat diatur oleh anggota sysadmin peran server tetap di Distributor ketika profil baru sedang dibuat di server.
Pengambilan AgentType setara dengan menjalankan sp_help_agent_profile (Transact-SQL).
Pengaturan AgentType dan panggilan Create setara dengan menjalankan sp_add_agent_profile (Transact-SQL).