SPWebApplication.Context property
Obtém o aplicativo da web de contexto, se houver.
Namespace: Microsoft.SharePoint.Administration
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'Declaração
Public Shared ReadOnly Property Context As SPWebApplication
Get
'Uso
Dim value As SPWebApplication
value = SPWebApplication.Context
public static SPWebApplication Context { get; }
Property value
Type: Microsoft.SharePoint.Administration.SPWebApplication
Comentários
Isso só funcionará se houver um HttpContext.