SPFarm.GetObject method (Guid)

Returns the specified object based on its associated GUID.

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


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

    A System.Guid object that identifies the object.

Return value

Type: Microsoft.SharePoint.Administration.SPPersistedObject
An SPPersistedObject object that represents the object that is associated with the GUID.

See also


SPFarm class

SPFarm members

GetObject overload

Microsoft.SharePoint.Administration namespace