共用方式為


SPAdministrationLink class

SPAdministrationLink代表使用者檢視當他們按一下該應用程式上的 [管理特定的服務應用程式管理] 頁面。

Inheritance hierarchy

System.Object
  Microsoft.SharePoint.Administration.SPAdministrationLink

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

Syntax

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

備註

您可以覆寫ManageLink傳回SPAdministrationLink物件,在瀏覽器中系統管理員在按一下時,將會移至 [管理] 頁面上的服務應用程式。

/// 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.

請參閱

參照

SPAdministrationLink members

Microsoft.SharePoint.Administration namespace