Share via


AreaListingCollection.AddListing Method

NOTE: This API is now obsolete.

Adds a listing to the collection.

Namespace:  Microsoft.SharePoint.Portal.SiteData
Assembly:  Microsoft.SharePoint.Portal (in Microsoft.SharePoint.Portal.dll)

Syntax

'Declaration
<ObsoleteAttribute("This class is obsolete.")> _
Public Function AddListing ( _
    Title As String, _
    ListingDescription As String, _
    type As ListingType, _
    strUrl As String, _
    Audiences As Guid() _
) As AreaListing
'Usage
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)
[ObsoleteAttribute("This class is obsolete.")]
public AreaListing AddListing(
    string Title,
    string ListingDescription,
    ListingType type,
    string strUrl,
    Guid[] Audiences
)

Parameters

  • ListingDescription
    Type: System.String
    The description of the listing to add to the collection.
  • Audiences
    Type: []
    The audiences of the listing.

Return Value

Type: Microsoft.SharePoint.Portal.SiteData.AreaListing
An AreaListing object that represents the listing that is added to the collection.

Remarks

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

See Also

Reference

AreaListingCollection Class

AreaListingCollection Members

Microsoft.SharePoint.Portal.SiteData Namespace