Partager via


Classe AgentCore

Implements the core functionality for managed replication agents.

Hiérarchie d'héritage

System.Object
  System.MarshalByRefObject
    Microsoft.SqlServer.Replication.AgentCore
      Microsoft.SqlServer.Replication.SnapshotGenerationAgent

Espace de noms :  Microsoft.SqlServer.Replication
Assembly :  Microsoft.SqlServer.Replication (en Microsoft.SqlServer.Replication.dll)

Syntaxe

'Déclaration
<ComVisibleAttribute(True)> _
<StrongNameIdentityPermissionAttribute(SecurityAction.InheritanceDemand, Name := "Microsoft.SqlServer.Replication",  _
    PublicKey := "0024000004800000940000000602000000240000525341310004000001000100272736ad6e5f9586bac2d531eabc3acc666c2f8ec879fa94f8f7b0327d2ff2ed523448f83c3d5c5dd2dfc7bc99c5286b2c125117bf5cbe242b9d41750732b2bdffe649c6efb8e5526d526fdd130095ecdb7bf210809c6cdad8824faa9ac0310ac3cba2aa0523567b2dfa7fe250b30facbd62d4ec99b94ac47c7d3b28f1f6e4c8")> _
Public MustInherit Class AgentCore _
    Inherits MarshalByRefObject
'Utilisation
Dim instance As AgentCore
[ComVisibleAttribute(true)]
[StrongNameIdentityPermissionAttribute(SecurityAction.InheritanceDemand, Name = "Microsoft.SqlServer.Replication", 
    PublicKey = "0024000004800000940000000602000000240000525341310004000001000100272736ad6e5f9586bac2d531eabc3acc666c2f8ec879fa94f8f7b0327d2ff2ed523448f83c3d5c5dd2dfc7bc99c5286b2c125117bf5cbe242b9d41750732b2bdffe649c6efb8e5526d526fdd130095ecdb7bf210809c6cdad8824faa9ac0310ac3cba2aa0523567b2dfa7fe250b30facbd62d4ec99b94ac47c7d3b28f1f6e4c8")]
public abstract class AgentCore : MarshalByRefObject
[ComVisibleAttribute(true)]
[StrongNameIdentityPermissionAttribute(SecurityAction::InheritanceDemand, Name = L"Microsoft.SqlServer.Replication", 
    PublicKey = L"0024000004800000940000000602000000240000525341310004000001000100272736ad6e5f9586bac2d531eabc3acc666c2f8ec879fa94f8f7b0327d2ff2ed523448f83c3d5c5dd2dfc7bc99c5286b2c125117bf5cbe242b9d41750732b2bdffe649c6efb8e5526d526fdd130095ecdb7bf210809c6cdad8824faa9ac0310ac3cba2aa0523567b2dfa7fe250b30facbd62d4ec99b94ac47c7d3b28f1f6e4c8")]
public ref class AgentCore abstract : public MarshalByRefObject
[<AbstractClassAttribute>]
[<ComVisibleAttribute(true)>]
[<StrongNameIdentityPermissionAttribute(SecurityAction.InheritanceDemand, Name = "Microsoft.SqlServer.Replication", 
    PublicKey = "0024000004800000940000000602000000240000525341310004000001000100272736ad6e5f9586bac2d531eabc3acc666c2f8ec879fa94f8f7b0327d2ff2ed523448f83c3d5c5dd2dfc7bc99c5286b2c125117bf5cbe242b9d41750732b2bdffe649c6efb8e5526d526fdd130095ecdb7bf210809c6cdad8824faa9ac0310ac3cba2aa0523567b2dfa7fe250b30facbd62d4ec99b94ac47c7d3b28f1f6e4c8")>]
type AgentCore =  
    class 
        inherit MarshalByRefObject 
    end
public abstract class AgentCore extends MarshalByRefObject

Le type AgentCore expose les membres suivants.

Constructeurs

  Nom Description
Méthode protégée AgentCore Creates a new instance of the AgentCore class.

Haut de la page

Propriétés

  Nom Description
Propriété publique AbortPolicy Gets or sets how running replication agent threads are terminated when an unanticipated shutdown occurs.
Propriété publique ComErrorCollection Gets information on errors that occur during agent execution.
Propriété publique FlatExceptionCollection Infrastructure. Gets the collection of exception objects accessed using the IEnumerable interface.
Propriété publique HistoryVerboseLevel Gets or sets the amount of history logged during agent execution.
Propriété publique LoginTimeout Get or sets the number of seconds before the login times out for connections made by the agent.
Propriété publique Output Gets or sets the name and path of the agent output file.
Propriété publique OutputVerboseLevel Gets or sets the level of detail of information written to the agent output file.
Propriété publique PacketSize Infrastructure. Gets or sets the packet size associated with the agent.
Propriété publique ProfileName Gets or sets an agent profile to use when running the agent.
Propriété publique PublisherFailoverPartner Gets or sets the failover partner instance of SQL Server participating in a database mirroring session with the publication database.
Propriété publique QueryTimeout Gets or sets the number of seconds before a query times out.

Haut de la page

Méthodes

  Nom Description
Méthode publique Abort Aborts the process of the current instance.
Méthode publique CreateObjRef Informations critiques de sécurité. (hérité de MarshalByRefObject.)
Méthode publique Equals (hérité de Object.)
Méthode protégée Finalize (hérité de Object.)
Méthode publique GetHashCode (hérité de Object.)
Méthode publique GetLifetimeService Informations critiques de sécurité. (hérité de MarshalByRefObject.)
Méthode publique GetType (hérité de Object.)
Méthode publique InitializeLifetimeService Informations critiques de sécurité. (hérité de MarshalByRefObject.)
Méthode protégée MemberwiseClone() (hérité de Object.)
Méthode protégée MemberwiseClone(Boolean) (hérité de MarshalByRefObject.)
Méthode publique ResetParametersToDefault Resets the value of the parameters to default.
Méthode publique ToString (hérité de Object.)

Haut de la page

Événements

  Nom Description
Événement public ComStatus Infrastructure. Occurs when a running agent returns synchronization Com status information.
Événement public Status Occurs when a running agent returns status information.

Haut de la page

Notes

Do not use AgentCore. Instead use the derived agent classes SnapshotGenerationAgent, MergeSynchronizationAgent, and TransSynchronizationAgent.

Sécurité des threads

Tous les membres publics static (Shared dans Visual Basic) de ce type sont thread-safe. Tous les membres de l'instance ne sont pas garantis comme étant thread-safe.

Voir aussi

Référence

Espace de noms Microsoft.SqlServer.Replication