AreaListingCollection, classe (Microsoft.SharePoint.Portal.SiteData)
Obsolète.
Manages the AreaListing objects.
Espace de noms : Microsoft.SharePoint.Portal.SiteData
Assembly : Microsoft.SharePoint.Portal (dans microsoft.sharepoint.portal.dll)
Syntaxe
'Déclaration
<DefaultMemberAttribute("Item")> _
<ObsoleteAttribute("This class is obsolete.")> _
<SharePointPermissionAttribute(SecurityAction.InheritanceDemand, ObjectModel:=True)> _
<SharePointPermissionAttribute(SecurityAction.Demand, ObjectModel:=True)> _
Public Class AreaListingCollection
Implements IEnumerable
'Utilisation
Dim instance As AreaListingCollection
[DefaultMemberAttribute("Item")]
[ObsoleteAttribute("This class is obsolete.")]
[SharePointPermissionAttribute(SecurityAction.InheritanceDemand, ObjectModel=true)]
[SharePointPermissionAttribute(SecurityAction.Demand, ObjectModel=true)]
public class AreaListingCollection : IEnumerable
Exemple
The following code example shows the use of the AreaListingCollection class.
AreaListingCollection listingsTopics = areaTopics.Listings;
// Add a new listing.
listingNew = listingsTopics.AddListing("New Listing Title",
"New Listing Description",
ListingType.ExternalUrl,
"http://example.com",
new Guid[] { });
listingNew.Update(); // complete the creation
// Iterate over the collection, then remove the new listing.
foreach (AreaListing listing in listingsTopics)
{
// Look for, then remove, the newly added listing.
if (listing.Title == listingNew.Title)
{
listingsTopics.RemoveListing(listing.ID);
// After removing listing, collection isn't sane until
// refreshed, so break.
break;
}
}
Hiérarchie d'héritage
System.Object
Microsoft.SharePoint.Portal.SiteData.AreaListingCollection
Sécurité des threads
Les membres statiques publics de ce type (Shared en Visual Basic) sont sécurisés au niveau des threads. Il n'est pas garanti que les membres d'instance soient sécurisés au niveau des threads.
Voir aussi
Référence
Membres AreaListingCollection
Microsoft.SharePoint.Portal.SiteData, espace de noms