Partager via


SPOfficialFileHost.GetHostById - Méthode

Obtient la connexion d'hôte fichier officiel par code. Connexions d'hôte officiel de fichier peuvent exister pour une application web entière ou pour un client particulier.

Espace de noms :  Microsoft.SharePoint
Assembly :  Microsoft.SharePoint (dans Microsoft.SharePoint.dll)

Syntaxe

'Déclaration
Public Shared Function GetHostById ( _
    site As SPSite, _
    id As Guid _
) As SPOfficialFileHost
'Utilisation
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
)

Paramètres

Valeur renvoyée

Type : Microsoft.SharePoint.SPOfficialFileHost
la connexion d'hôte officiel fichier s'il existe, sinon null

Voir aussi

Référence

SPOfficialFileHost classe

SPOfficialFileHost - Membres

Microsoft.SharePoint - Espace de noms