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)

'Declaration
<SharePointPermissionAttribute(SecurityAction.InheritanceDemand, ObjectModel := True)> _
<SharePointPermissionAttribute(SecurityAction.LinkDemand, ObjectModel := True)> _
Public NotInheritable Class SPAdministrationLink
'Usage
Dim instance As 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 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

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