SPOfficialFileHost.GetHostById method
Gets the official file host connection by id. Official file host connections can exist either for an entire web application or for a particular tenant.
Namespace: Microsoft.SharePoint
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'Declaration
Public Shared Function GetHostById ( _
site As SPSite, _
id As Guid _
) As SPOfficialFileHost
'Usage
Dim site As SPSite
Dim id As Guid
Dim returnValue As SPOfficialFileHost
returnValue = SPOfficialFileHost.GetHostById(site, _
id)
public static SPOfficialFileHost GetHostById(
SPSite site,
Guid id
)
Parameters
site
Type: Microsoft.SharePoint.SPSitethe site
id
Type: System.Guidthe id
Return value
Type: Microsoft.SharePoint.SPOfficialFileHost
the official file host connection if it exists, null otherwise