共用方式為


SPFarm.GetObject method (Guid)

會傳回指定之的物件根據其關聯的 GUID。

Namespace:  Microsoft.SharePoint.Administration
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

Syntax

'宣告
Public Function GetObject ( _
    id As Guid _
) As SPPersistedObject
'用途
Dim instance As SPFarm
Dim id As Guid
Dim returnValue As SPPersistedObject

returnValue = instance.GetObject(id)
public SPPersistedObject GetObject(
    Guid id
)

參數

  • id
    Type: System.Guid

    System.Guid物件,可識別的物件。

傳回值

Type: Microsoft.SharePoint.Administration.SPPersistedObject
SPPersistedObject 物件,代表相關聯的 GUID。

請參閱

參照

SPFarm class

SPFarm members

GetObject overload

Microsoft.SharePoint.Administration namespace