Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

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.LinkDemand, ObjectModel = true)]
[SharePointPermissionAttribute(SecurityAction.InheritanceDemand, 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.
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.