Click or drag to resize

SPHelper Class

This expression variable provides access to SharePoint related functionality within the expression engine.
Inheritance Hierarchy
SystemObject
  Colygon.MatchPoint.CoreSPHelper

Namespace:  Colygon.MatchPoint.Core
Assembly:  Colygon.MatchPoint (in Colygon.MatchPoint.dll) Version: 2019.2.1.0
Syntax
C#
public static class SPHelper

The SPHelper type exposes the following members.

Methods
  NameDescription
Public methodStatic memberCombineUrl
Returns the combined URL.
Public methodStatic memberExtractExtension
Returns the file extension extracted from the specified string.
Public methodStatic memberExtractLeafName
Returns the filename part of the specified URL.
Public methodStatic memberExtractParentUrl
Returns the URL of the parent object within the specified URL.
Public methodStatic memberGetCurrentList
Returns the current SPList in a non AJAX request.
Public methodStatic memberGetCurrentListItem
Returns the current SPListItem in a non AJAX request.
Public methodStatic memberGetCurrentUICulture
Returns the current locale ID.
Public methodStatic memberGetCurrentUser
Returns the SPUser object of the user currently logged on.
Public methodStatic memberGetCurrentWeb
Returns the current SPWeb.
Public methodStatic memberGetCurrentZoneUrl
Returns the translated version of the specified URL for the current zone within the SP farm.
Public methodStatic memberGetDefaultZoneUrl
Returns the translated version of the specified URL for the default zone within the SP farm.
Public methodStatic memberGetEditFormUrl
Public methodStatic memberGetImageFileExtensions
Public methodStatic memberGetList(String)
Returns the SPList with the specified URL.
Public methodStatic memberGetList(String, String)
Returns the SPList with the specified parent web URL and list name.
Public methodStatic memberGetListItem(String)
Returns the SPListItem with the specified URL.
Public methodStatic memberGetListItem(String, String, Int32)
Returns the SPListItem with the specified parent web URL, parent list name and ID.
Public methodStatic memberGetListItemDisplayFormUrl
Returns the URL of the 'View Item' form for the specified SPListItem.
Public methodStatic memberGetListItemEditFormUrl
Returns the URL of the 'Edit Item' form for the specified SPListItem.
Public methodStatic memberGetListNewFormUrl
Returns the URL of the 'New Item' form for the specified SPList.
Public methodStatic memberGetOpenDocumentUrl(String)
Returns the 'Open Document' href compatible URL value of the specified file. This can either be an URL (e.g. 'http://foo.com') or a javascript expression (e.g. "javascript:OpenDocument('http://fo.com')".
Public methodStatic memberGetOpenDocumentUrl(String, String, String)
Returns the 'Open Document' href compatible URL value of the specified file. This can either be an URL (e.g. 'http://foo.com') or a javascript expression (e.g. "javascript:OpenDocument('http://fo.com')".
Public methodStatic memberGetPageUrlPath
Returns the page URL path (SPHelper.GetPageUrlPath) for the current page.
Public methodStatic memberGetSendToUrl
Public methodStatic memberGetUniqueFileName
Ensures that the specified fileName does not exist and returns a unique file name if it exists.
Public methodStatic memberGetUser
Returns the SPUser object for the specified login name or SDDL SID string.
Public methodStatic memberIsJavaScriptUrl(String)
Public methodStatic memberIsJavaScriptUrl(String, String)
Public methodStatic memberOpenWeb(String)
Opens the SPWeb with the specified URL.
Public methodStatic memberOpenWeb(String, SPUserToken, Boolean)
Public methodStatic memberParseOwsUserString
Converts an OWSUSER string (which is retrieved via search) to an object, returns null if input is not in the correct format ('Email | DisplayName | EncodedClaim Claim').
Public methodStatic memberSendMail
Sends an e-mail with the specified recipient, subject and body. The SMTP settings configured in the web application of the current SharePoint site collection are used.
Public methodStatic memberTranslateUrl
Returns translated version of the specified URL for the specified zone within the SP farm.
Top
Fields
  NameDescription
Public fieldStatic memberJavaScriptPrefix
Top
Remarks
  • #APIChange 5.0: removed public static string GetParentFolderUrl(SPListItem item)
  • #APIChange 5.0: removed public static SPUser GetUserBySid(string sddlSid), use SPHelper.GetUser() instead
See Also