Partilhar via


AuthorityPageCollection Class

Represents a collection of AuthorityPage objects.

Inheritance Hierarchy

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

Namespace:  Microsoft.Office.Server.Search.Administration
Assembly:  Microsoft.Office.Server.Search (in Microsoft.Office.Server.Search.dll)

Syntax

'Declaration
<SharePointPermissionAttribute(SecurityAction.Demand, ObjectModel := True)> _
Public NotInheritable Class AuthorityPageCollection _
    Implements IEnumerable
'Usage
Dim instance As AuthorityPageCollection
[SharePointPermissionAttribute(SecurityAction.Demand, ObjectModel = true)]
public sealed class AuthorityPageCollection : IEnumerable

Remarks

Authoritative pages, designated by the search administrator, are pages that link to the most relevant information.

Use the AuthorityPages() property of the Ranking class to get the collection of authoritative pages for Search service application.

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

To designate a page as an authoritative page, use the Create method of the AuthorityPageCollection class.

To remove an authoritative page, use the Delete method of the AuthorityPage class.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

AuthorityPageCollection Members

Microsoft.Office.Server.Search.Administration Namespace