SPAdministrationLink 类
SPAdministrationLink表示当用户单击该应用程序上的管理时,将在用户查看特定的服务应用程序管理页。
继承层次结构
System.Object
Microsoft.SharePoint.Administration.SPAdministrationLink
命名空间: Microsoft.SharePoint.Administration
程序集: Microsoft.SharePoint(位于 Microsoft.SharePoint.dll 中)
语法
声明
<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
线程安全性
该类型的任何公共 静态 (已共享 在 Visual Basic 中) 成员都是线程安全的。不保证任何实例成员都是线程安全的。