Site.GetMigrationJobStatus 方法

This method queries the queue for the status of the specified migration job. It is an optional check that can be called after the CreateMigrationJob method and uses the id returned by that call. Once the migration job has completed, it will no longer show up in the queue and you should check the notification queue and/or log output for detailed status.

命名空间:  Microsoft.SharePoint.Client
程序集:   Microsoft.SharePoint.Client.Silverlight(位于 Microsoft.SharePoint.Client.Silverlight.dll 中);  Microsoft.SharePoint.Client.Phone(位于 Microsoft.SharePoint.Client.Phone.dll 中)  Microsoft.SharePoint.Client(位于 Microsoft.SharePoint.Client.dll 中)

语法

声明
Public Function GetMigrationJobStatus ( _
    id As Guid _
) As ClientResult(Of MigrationJobState)
用法
Dim instance As Site
Dim id As Guid
Dim returnValue As ClientResult(Of MigrationJobState)

returnValue = instance.GetMigrationJobStatus(id)
public ClientResult<MigrationJobState> GetMigrationJobStatus(
    Guid id
)

参数

  • id
    类型:System.Guid

    The unique identifier of the migration job returned from the CreateMigrationJob method.

返回值

类型:Microsoft.SharePoint.Client.ClientResult<MigrationJobState>
The migration job status is returned using a MigrationJobState object if the job is found in the queue. If the job is unsuccessful, a value of none (0) is returned.

示例

SPMigrationJobState CurrentJobState = TargetSite.GetMigrationJobStatus(MigrationJobId);

另请参阅

引用

Site 类

Site 成员

Microsoft.SharePoint.Client 命名空间