MSDN Library

AgentCore Class

Implements the core functionality for managed replication agents.


Namespace:  Microsoft.SqlServer.Replication
Assembly:  Microsoft.SqlServer.Replication (in Microsoft.SqlServer.Replication.dll)

[StrongNameIdentityPermissionAttribute(SecurityAction.InheritanceDemand, Name = "Microsoft.SqlServer.Replication", 
	PublicKey = "0024000004800000940000000602000000240000525341310004000001000100272736ad6e5f9586bac2d531eabc3acc666c2f8ec879fa94f8f7b0327d2ff2ed523448f83c3d5c5dd2dfc7bc99c5286b2c125117bf5cbe242b9d41750732b2bdffe649c6efb8e5526d526fdd130095ecdb7bf210809c6cdad8824faa9ac0310ac3cba2aa0523567b2dfa7fe250b30facbd62d4ec99b94ac47c7d3b28f1f6e4c8")]
public abstract class AgentCore : MarshalByRefObject

The AgentCore type exposes the following members.

Protected methodAgentCoreCreates a new instance of the AgentCore class.

Public propertyAbortPolicyGets or sets how running replication agent threads are terminated when an unanticipated shutdown occurs.
Public propertyComErrorCollectionGets information on errors that occur during agent execution.
Public propertyFlatExceptionCollectionInfrastructure. Gets the collection of exception objects accessed using the IEnumerable interface.
Public propertyHistoryVerboseLevelGets or sets the amount of history logged during agent execution.
Public propertyLoginTimeoutGet or sets the number of seconds before the login times out for connections made by the agent.
Public propertyOutputGets or sets the name and path of the agent output file.
Public propertyOutputVerboseLevelGets or sets the level of detail of information written to the agent output file.
Public propertyPacketSizeInfrastructure. Gets or sets the packet size associated with the agent.
Public propertyProfileNameGets or sets an agent profile to use when running the agent.
Public propertyPublisherFailoverPartnerGets or sets the failover partner instance of SQL Server participating in a database mirroring session with the publication database.
Public propertyQueryTimeoutGets or sets the number of seconds before a query times out.

Public methodAbortAborts the process of the current instance.
Public methodCreateObjRefSecurity Critical. (Inherited from MarshalByRefObject.)
Public methodEquals (Inherited from Object.)
Protected methodFinalize (Inherited from Object.)
Public methodGetHashCode (Inherited from Object.)
Public methodGetLifetimeServiceSecurity Critical. (Inherited from MarshalByRefObject.)
Public methodGetType (Inherited from Object.)
Public methodInitializeLifetimeServiceSecurity Critical. (Inherited from MarshalByRefObject.)
Protected methodMemberwiseClone (Inherited from Object.)
Protected methodMemberwiseClone(Boolean) (Inherited from MarshalByRefObject.)
Public methodResetParametersToDefaultResets the value of the parameters to default.
Public methodToString (Inherited from Object.)

Public eventComStatusInfrastructure. Occurs when a running agent returns synchronization Com status information.
Public eventStatusOccurs when a running agent returns status information.

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

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Community Additions

© 2015 Microsoft