C# Class Glyma.UtilityService.SharePoint.SPWebExtensions

Mostra file Open project: chris-tomich/Glyma

Public Methods

Method Description
GetServerRelativeListUrlPrefix ( this site ) : string

Returns the server relative URL prefix for lists within a site.

TryGetList ( this site, string serverRelativeUrl ) : SPList

Return a reference to a list within the site using its server-relative URL.

Method Details

GetServerRelativeListUrlPrefix() public static method

Returns the server relative URL prefix for lists within a site.
public static GetServerRelativeListUrlPrefix ( this site ) : string
site this The site to use.
return string

TryGetList() public static method

Return a reference to a list within the site using its server-relative URL.
public static TryGetList ( this site, string serverRelativeUrl ) : SPList
site this The site to retrieve the list from.
serverRelativeUrl string The server relative URL of the list.
return SPList