Partager via


AreaListingCollection.AddListing, méthode (Microsoft.SharePoint.Portal.SiteData)

Adds a listing to the collection.

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

Syntaxe

'Déclaration
Public Function AddListing ( _
    Title As String, _
    ListingDescription As String, _
    type As ListingType, _
    strUrl As String, _
    Audiences As Guid() _
) As AreaListing
'Utilisation
Dim instance As AreaListingCollection
Dim Title As String
Dim ListingDescription As String
Dim type As ListingType
Dim strUrl As String
Dim Audiences As Guid()
Dim returnValue As AreaListing

returnValue = instance.AddListing(Title, ListingDescription, type, strUrl, Audiences)
public AreaListing AddListing (
    string Title,
    string ListingDescription,
    ListingType type,
    string strUrl,
    Guid[] Audiences
)

Paramètres

  • Title
    The title of the listing.
  • ListingDescription
    The description of the listing to add to the collection.
  • type
    The type of Listing.
  • strUrl
    The URL of the listing.
  • Audiences
    The audiences of the listing.

Valeur de retour

An AreaListing object that represents the listing that is added to the collection.

Remarques

Modified properties are not updated in the database until you call the Update method.

Voir aussi

Référence

AreaListingCollection, classe
Membres AreaListingCollection
Microsoft.SharePoint.Portal.SiteData, espace de noms