SPContext.GetContext SPContext.GetContext SPContext.GetContext Method

Definition

Overloads

GetContext(SPWeb) GetContext(SPWeb) GetContext(SPWeb)
GetContext(HttpContext) GetContext(HttpContext) GetContext(HttpContext)
GetContext(HttpContext, SPItem, SPWeb) GetContext(HttpContext, SPItem, SPWeb) GetContext(HttpContext, SPItem, SPWeb)
GetContext(HttpContext, Int32, Type) GetContext(HttpContext, Int32, Type) GetContext(HttpContext, Int32, Type)
GetContext(HttpContext, Guid, Guid, SPWeb) GetContext(HttpContext, Guid, Guid, SPWeb) GetContext(HttpContext, Guid, Guid, SPWeb)
GetContext(HttpContext, Int32, Guid, SPWeb) GetContext(HttpContext, Int32, Guid, SPWeb) GetContext(HttpContext, Int32, Guid, SPWeb)
GetContext(HttpContext, String, Guid, SPWeb) GetContext(HttpContext, String, Guid, SPWeb) GetContext(HttpContext, String, Guid, SPWeb)

GetContext(SPWeb) GetContext(SPWeb) GetContext(SPWeb)

public:
 static Microsoft::SharePoint::SPContext ^ GetContext(Microsoft::SharePoint::SPWeb ^ web);
public static Microsoft.SharePoint.SPContext GetContext (Microsoft.SharePoint.SPWeb web);
Public Shared Function GetContext (web As SPWeb) As SPContext
Parameters
Returns

GetContext(HttpContext) GetContext(HttpContext) GetContext(HttpContext)

public:
 static Microsoft::SharePoint::SPContext ^ GetContext(System::Web::HttpContext ^ context);
public static Microsoft.SharePoint.SPContext GetContext (System.Web.HttpContext context);
Public Shared Function GetContext (context As HttpContext) As SPContext
Parameters
Returns

GetContext(HttpContext, SPItem, SPWeb) GetContext(HttpContext, SPItem, SPWeb) GetContext(HttpContext, SPItem, SPWeb)

public:
 static Microsoft::SharePoint::SPContext ^ GetContext(System::Web::HttpContext ^ context, Microsoft::SharePoint::SPItem ^ item, Microsoft::SharePoint::SPWeb ^ web);
public static Microsoft.SharePoint.SPContext GetContext (System.Web.HttpContext context, Microsoft.SharePoint.SPItem item, Microsoft.SharePoint.SPWeb web);
Public Shared Function GetContext (context As HttpContext, item As SPItem, web As SPWeb) As SPContext
Parameters
Returns

GetContext(HttpContext, Int32, Type) GetContext(HttpContext, Int32, Type) GetContext(HttpContext, Int32, Type)

public:
 static Microsoft::SharePoint::SPContext ^ GetContext(System::Web::HttpContext ^ context, int itemId, Type ^ itemType);
public static Microsoft.SharePoint.SPContext GetContext (System.Web.HttpContext context, int itemId, Type itemType);
Public Shared Function GetContext (context As HttpContext, itemId As Integer, itemType As Type) As SPContext
Parameters
itemId
Int32 Int32 Int32
itemType
Type Type Type
Returns

GetContext(HttpContext, Guid, Guid, SPWeb) GetContext(HttpContext, Guid, Guid, SPWeb) GetContext(HttpContext, Guid, Guid, SPWeb)

public:
 static Microsoft::SharePoint::SPContext ^ GetContext(System::Web::HttpContext ^ context, Guid viewId, Guid listId, Microsoft::SharePoint::SPWeb ^ web);
public static Microsoft.SharePoint.SPContext GetContext (System.Web.HttpContext context, Guid viewId, Guid listId, Microsoft.SharePoint.SPWeb web);
Public Shared Function GetContext (context As HttpContext, viewId As Guid, listId As Guid, web As SPWeb) As SPContext
Parameters
viewId
Guid Guid Guid
listId
Guid Guid Guid
Returns

GetContext(HttpContext, Int32, Guid, SPWeb) GetContext(HttpContext, Int32, Guid, SPWeb) GetContext(HttpContext, Int32, Guid, SPWeb)

public:
 static Microsoft::SharePoint::SPContext ^ GetContext(System::Web::HttpContext ^ context, int itemId, Guid listId, Microsoft::SharePoint::SPWeb ^ web);
public static Microsoft.SharePoint.SPContext GetContext (System.Web.HttpContext context, int itemId, Guid listId, Microsoft.SharePoint.SPWeb web);
Public Shared Function GetContext (context As HttpContext, itemId As Integer, listId As Guid, web As SPWeb) As SPContext
Parameters
itemId
Int32 Int32 Int32
listId
Guid Guid Guid
Returns

GetContext(HttpContext, String, Guid, SPWeb) GetContext(HttpContext, String, Guid, SPWeb) GetContext(HttpContext, String, Guid, SPWeb)

public:
 static Microsoft::SharePoint::SPContext ^ GetContext(System::Web::HttpContext ^ context, System::String ^ itemId, Guid listId, Microsoft::SharePoint::SPWeb ^ web);
public static Microsoft.SharePoint.SPContext GetContext (System.Web.HttpContext context, string itemId, Guid listId, Microsoft.SharePoint.SPWeb web);
Public Shared Function GetContext (context As HttpContext, itemId As String, listId As Guid, web As SPWeb) As SPContext
Parameters
listId
Guid Guid Guid
Returns

Applies to