共用方式為


SPPatchableUnitInfo.LatestPatchOnServer Method

Retrieves the latest patch installed on the given server.

Namespace:  Microsoft.SharePoint.Administration
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No

Syntax

'Declaration
Public Function LatestPatchOnServer ( _
    serverId As Guid _
) As SPPatchInfo
'Usage
Dim instance As SPPatchableUnitInfo
Dim serverId As Guid
Dim returnValue As SPPatchInfo

returnValue = instance.LatestPatchOnServer(serverId)
public SPPatchInfo LatestPatchOnServer(
    Guid serverId
)

Parameters

  • serverId
    Type: System.Guid

    Unique identifier of the server to retrieve the latest patch information.

Return Value

Type: Microsoft.SharePoint.Administration.SPPatchInfo
A SPPatchInfo object with information on the latest patch.

See Also

Reference

SPPatchableUnitInfo Class

SPPatchableUnitInfo Members

Microsoft.SharePoint.Administration Namespace