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
site
Type : Microsoft.SharePoint.SPSitele site
id
Type : System.Guidl'id
Valeur renvoyée
Type : Microsoft.SharePoint.SPOfficialFileHost
la connexion d'hôte officiel fichier s'il existe, sinon null