Freigeben über


KnowledgeSyncProvider.EndSession-Methode

Benachrichtigt den Anbieter beim Überschreiben in einer abgeleiteten Klasse, dass eine Synchronisierungssitzung, in der er eingetragen war, abgeschlossen ist.

Namespace: Microsoft.Synchronization
Assembly: Microsoft.Synchronization (in microsoft.synchronization.dll)

Syntax

'Declaration
Public MustOverride Sub EndSession ( _
    syncSessionContext As SyncSessionContext _
)
'Usage
Dim instance As KnowledgeSyncProvider
Dim syncSessionContext As SyncSessionContext

instance.EndSession(syncSessionContext)
public abstract void EndSession (
    SyncSessionContext syncSessionContext
)
public:
virtual void EndSession (
    SyncSessionContext^ syncSessionContext
) abstract
public abstract void EndSession (
    SyncSessionContext syncSessionContext
)
public abstract function EndSession (
    syncSessionContext : SyncSessionContext
)

Parameter

  • syncSessionContext
    Der aktuelle Status der entsprechenden Sitzung.

Hinweise

syncSessionContext entspricht dem SyncSessionContext-Objekt, das für den vorherigen entsprechenden Aufruf von BeginSession bereitgestellt wurde.

Diese Methode löst eine InvalidOperationException aus, wenn der Anbieter nicht zuvor einen Aufruf von BeginSession für die durch syncSessionContext angegebene Sitzung erhalten hat.

Siehe auch

Verweis

KnowledgeSyncProvider-Klasse
KnowledgeSyncProvider-Member
Microsoft.Synchronization-Namespace