Export (0) Print
Expand All

SPAdministrationLink class

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

System.Object
  Microsoft.SharePoint.Administration.SPAdministrationLink

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

[SharePointPermissionAttribute(SecurityAction.InheritanceDemand, ObjectModel = true)]
[SharePointPermissionAttribute(SecurityAction.LinkDemand, ObjectModel = true)]
public sealed class SPAdministrationLink

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());}
        }


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