DemotedSiteCollection 类 (Microsoft.Office.Server.Search.Administration)

Represents a collection of DemotedSite objects.

命名空间: Microsoft.Office.Server.Search.Administration
程序集: Microsoft.Office.Server.Search (在 microsoft.office.server.search.dll 中)

语法

声明
<DefaultMemberAttribute("Item")> _
<SharePointPermissionAttribute(SecurityAction.Demand, ObjectModel:=True)> _
Public NotInheritable Class DemotedSiteCollection
    Implements IEnumerable
用法
Dim instance As DemotedSiteCollection
[DefaultMemberAttribute("Item")] 
[SharePointPermissionAttribute(SecurityAction.Demand, ObjectModel=true)] 
public sealed class DemotedSiteCollection : IEnumerable

备注

Demoted sites contain content that is less relevant in your environment, and therefore should be ranked lower than that of all other sites. For more information, see Authoritative Pages and Demoted Sites.

Use the DemotedSites property of the Ranking class to get the collection of demoted sites for a Shared Service Provider.

Use an indexer to return a single authoritative page from the DemotedSiteCollection object. For example, assuming the collection is assigned to a variable named demotedSites, use demotedSites[index] in Microsoft Visual C# or demotedSites(index) in Microsoft Visual Basic, where index is the index number of the demoted site in the collection, or a System.Uri object representing the demoted site's URL.

To designate a site as a demoted site, use the Create method of the DemotedSiteCollection class.

To remove an demoted site, use the Delete method of the DemotedSite class.

继承层次结构

System.Object
  Microsoft.Office.Server.Search.Administration.DemotedSiteCollection

线程安全性

此类型的任何公共静态( Visual Basic 中共享)成员是线程安全的。不保证任何实例成员都是线程安全的。

另请参阅

参考

DemotedSiteCollection 成员
Microsoft.Office.Server.Search.Administration 命名空间