Site.GetMigrationJobStatus-Methode
Diese Methode in der Warteschlange für den Status des angegebenen Migration Auftrags Abfragen. Es ist eine optionale überprüfen, die nach der Methode CreateMigrationJob aufgerufen werden kann und die zurückgegebene dieser Anruf Id wird verwendet. Nach dem Abschluss des Migration Auftrags es nicht mehr in der Warteschlange angezeigt wird und Sie überprüfen Sie die Benachrichtigungswarteschlange und/oder Ausgaben für detaillierten Status protokollieren soll.
Namespace: Microsoft.SharePoint.Client
Assemblys: Microsoft.SharePoint.Client.Silverlight (in Microsoft.SharePoint.Client.Silverlight.dll); Microsoft.SharePoint.Client.Phone (in Microsoft.SharePoint.Client.Phone.dll) Microsoft.SharePoint.Client (in Microsoft.SharePoint.Client.dll)
Syntax
'Declaration
Public Function GetMigrationJobStatus ( _
id As Guid _
) As ClientResult(Of MigrationJobState)
'Usage
Dim instance As Site
Dim id As Guid
Dim returnValue As ClientResult(Of MigrationJobState)
returnValue = instance.GetMigrationJobStatus(id)
public ClientResult<MigrationJobState> GetMigrationJobStatus(
Guid id
)
Parameter
id
Typ: System.GuidDer eindeutige Bezeichner des Projekts Migration von der Methode CreateMigrationJob zurückgegeben.
Rückgabewert
Typ: Microsoft.SharePoint.Client.ClientResult<MigrationJobState>
Mit einem MigrationJobState -Objekt aus, wenn die Position in der Warteschlange gefunden wird der Migrationsstatus zurückgegeben. Wenn Sie der Auftrag nicht erfolgreich ist, wird der Wert keine (0) zurückgegeben.
Beispiele
SPMigrationJobState CurrentJobState = TargetSite.GetMigrationJobStatus(MigrationJobId);