Partager via


PortalUrlCollection.Add, méthode (Microsoft.SharePoint.Portal.Topology)

Note   The PortalUrl constructor throws an InvalidOperationException when you try to create a portal URL with a URL name that already exists. To avoid this issue, use a try/catch block around any PortalUrl constructors.

Espace de noms : Microsoft.SharePoint.Portal.Topology
Assembly : Microsoft.SharePoint.Portal (dans microsoft.sharepoint.portal.dll)

Syntaxe

'Déclaration
Public Function Add ( _
    portalUrl As PortalUrl _
) As PortalUrl
'Utilisation
Dim instance As PortalUrlCollection
Dim portalUrl As PortalUrl
Dim returnValue As PortalUrl

returnValue = instance.Add(portalUrl)
public PortalUrl Add (
    PortalUrl portalUrl
)

Paramètres

  • portalUrl

Remarques

Voir aussi

Référence

PortalUrlCollection, classe
Membres PortalUrlCollection
Microsoft.SharePoint.Portal.Topology, espace de noms