Partager via


IMAExtensible2CallImport.CloseImportConnection Method

CloseImportConnection is used to tell the extensible MA the session is over and allow customer code to clean up. It can be assumed that OpenImportConnection has been called successfully.

Namespace: Microsoft.MetadirectoryServices
Assembly: Microsoft.MetadirectoryServicesEx (in Microsoft.MetadirectoryServicesEx.dll)

Usage

'Usage
Dim instance As IMAExtensible2CallImport
Dim importRunStep As CloseImportConnectionRunStep
Dim returnValue As CloseImportConnectionResults

returnValue = instance.CloseImportConnection(importRunStep)

Syntax

'Declaration
Function CloseImportConnection ( _
    importRunStep As CloseImportConnectionRunStep _
) As CloseImportConnectionResults
CloseImportConnectionResults CloseImportConnection (
    CloseImportConnectionRunStep importRunStep
)
CloseImportConnectionResults^ CloseImportConnection (
    CloseImportConnectionRunStep^ importRunStep
)
CloseImportConnectionResults CloseImportConnection (
    CloseImportConnectionRunStep importRunStep
)
function CloseImportConnection (
    importRunStep : CloseImportConnectionRunStep
) : CloseImportConnectionResults

Parameters

Return Value

Returns CloseImportConnectionResults.

Remarks

Exceptions: Return values, Errors, and Exceptions

The following is an example of CloseImportConnection:

 public CloseImportConnectionResults CloseImportConnection(CloseImportConnectionRunStep importRunStepInfo)
        {
            // Also, ImportResults.CustomData can be used for retaining necessary data
            // for performing a subsequent import. 
            // A typical case of this might be the watermark used 
            // for delta import.
            //
            return new CloseImportConnectionResults();
        }

Thread Safety

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

Platforms

Target Platforms

Change History

See Also

Reference

IMAExtensible2CallImport Interface
IMAExtensible2CallImport Members
Microsoft.MetadirectoryServices Namespace