SPAdministrationLink class

SPAdministrationLink represents the administration page for a specific service application that the user views when they click manage on that application.

Inheritance hierarchy

System.Object
  Microsoft.SharePoint.Administration.SPAdministrationLink

Namespace:  Microsoft.SharePoint.Administration
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

Syntax

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

Remarks

You can override ManageLink to return an SPAdministrationLink object that, when clicked by an administrator in a browser, will go to the management page for a service application.

/// Target location admin is sent to from within Central Administration when clicking on Service App or 
        /// selecting it and picking Manage in the ribbon from Central Administration > Manage Service Apps page.
        /// </summary>
        public override SPAdministrationLink ManageLink
        {
            get{return new SPAdministrationLink("/_admin/ManageSample?id=" + this.Id.ToString());}
        }

        /// <summary>
        /// Target location admin is sent to from within Central Administration when selecting the service all
        /// and picking Properties in the ribbon from Central Administration > Manage Service Apps page.
        /// </summary>
        public override SPAdministrationLink PropertiesLink
        {
            get{return new SPAdministrationLink("/_admin/EditSample?id=" + this.Id.ToString());}
        }
''' Target location admin is sent to from within Central Administration when clicking on Service App or 
''' selecting it and picking Manage in the ribbon from Central Administration > Manage Service Apps page.
''' </summary>
Public Overrides ReadOnly Property ManageLink() As SPAdministrationLink
    Get
        Return New SPAdministrationLink("/_admin/ManageSample?id=" & Me.Id.ToString())
    End Get
End Property

''' <summary>
''' Target location admin is sent to from within Central Administration when 
    selecting the service all'' and picking Properties in the ribbon from Central 
   Administration > Manage Service Apps page.
''' </summary>
Public Overrides ReadOnly Property PropertiesLink() As SPAdministrationLink
    Get
        Return New SPAdministrationLink("/_admin/EditSample?id=" & Me.Id.ToString())
    End Get
End Property

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

SPAdministrationLink members

Microsoft.SharePoint.Administration namespace