Clase SPAdministrationLink
SPAdministrationLink representa la página Administración de una aplicación de servicio específica que el usuario ve cuando hacen clic en Administrar en esa aplicación.
Jerarquía de la herencia
System.Object
Microsoft.SharePoint.Administration.SPAdministrationLink
Espacio de nombres: Microsoft.SharePoint.Administration
Ensamblado: Microsoft.SharePoint (en Microsoft.SharePoint.dll)
Sintaxis
'Declaración
<SharePointPermissionAttribute(SecurityAction.InheritanceDemand, ObjectModel := True)> _
<SharePointPermissionAttribute(SecurityAction.LinkDemand, ObjectModel := True)> _
Public NotInheritable Class SPAdministrationLink
'Uso
Dim instance As SPAdministrationLink
[SharePointPermissionAttribute(SecurityAction.InheritanceDemand, ObjectModel = true)]
[SharePointPermissionAttribute(SecurityAction.LinkDemand, ObjectModel = true)]
public sealed class SPAdministrationLink
Comentarios
Puede reemplazar ManageLink para devolver un objeto SPAdministrationLink , al hacer clic en un administrador en un explorador, irá a la página de administración para una aplicación de servicio.
/// 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
Seguridad para subprocesos
Los miembros static (Shared en Visual Basic) públicos de este tipo son seguros para subprocesos. No se garantiza que los miembros de instancias sean seguros para los subprocesos.