C# Класс MongoDataSource.MongoConnectionManager

Наследование: ConnectionManagerBase
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
AcquireConnection ( object txn ) : object

Creates an instance of the connection type.

CanUpdate ( string CreationName ) : bool

Gets or sets a Boolean that determines whether a connection manager supports upgrading the connection XML to a newer version.

ReleaseConnection ( object connection ) : void

Frees the connection established during Microsoft.SqlServer.Dts.Runtime.ConnectionManagerBase.AcquireConnection(System.Object). Called at design time and run time.

Update ( string &ObjectXml ) : void

Updates the XML persisted by a previous version of the connection manager.

Validate ( Microsoft infoEvents ) : Microsoft.SqlServer.Dts.Runtime.DTSExecResult

Validates the connection and returns an enumeration that indicates success or failure.

Приватные методы

Метод Описание
HandleValidationError ( Microsoft infoEvents, string message ) : Microsoft.SqlServer.Dts.Runtime.DTSExecResult
UpdateConnectionString ( ) : void

Описание методов

AcquireConnection() публичный Метод

Creates an instance of the connection type.
public AcquireConnection ( object txn ) : object
txn object The handle to a transaction object. (optional)
Результат object

CanUpdate() публичный Метод

Gets or sets a Boolean that determines whether a connection manager supports upgrading the connection XML to a newer version.
public CanUpdate ( string CreationName ) : bool
CreationName string The name of the connection to upgrade.
Результат bool

ReleaseConnection() публичный Метод

Frees the connection established during Microsoft.SqlServer.Dts.Runtime.ConnectionManagerBase.AcquireConnection(System.Object). Called at design time and run time.
public ReleaseConnection ( object connection ) : void
connection object The connection to release.
Результат void

Update() публичный Метод

Updates the XML persisted by a previous version of the connection manager.
public Update ( string &ObjectXml ) : void
ObjectXml string The XML used to update the connection manager XML.
Результат void

Validate() публичный Метод

Validates the connection and returns an enumeration that indicates success or failure.
public Validate ( Microsoft infoEvents ) : Microsoft.SqlServer.Dts.Runtime.DTSExecResult
infoEvents Microsoft An object that implements the Microsoft.SqlServer.Dts.Runtime.IDTSInfoEvents events interface to raise errors, warning, or informational events.
Результат Microsoft.SqlServer.Dts.Runtime.DTSExecResult