Click or drag to resize

MPUtility Class

This expression variable provides utility methods to be used from the expression engine.
Inheritance Hierarchy
SystemObject
  Colygon.MatchPoint.CoreMPUtility

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

The MPUtility type exposes the following members.

Methods
  NameDescription
Public methodStatic memberBulkLoadTags(String, Guid, IEnumerableString)
Public methodStatic memberBulkLoadTags(String, Guid, IEnumerableString, Int32)
Public methodStatic memberCreateDocument(String, String, String, String, Boolean)
Creates a document based on a given document template in the default Shared Document library.
Public methodStatic memberCreateDocument(String, String, String, String, String, Boolean)
Creates a document based on a given document template.
Public methodStatic memberEncodeHtml(Object)
Encodes the specified object for HTML, converting special characters to quoted UTF-8 format.
Public methodStatic memberEncodeHtml(String)
Encodes the specified string for HTML, converting special characters to quoted UTF-8 format.
Public methodStatic memberEncodeScript(Object)
Encodes the specified object for use in a script.
Public methodStatic memberEncodeScript(String)
Encodes the specified string for use in a script.
Public methodStatic memberEncodeUrl(Object)
Encodes the specified object for use in an URL, converting special characters to quoted UTF-8 format.
Public methodStatic memberEncodeUrl(String)
Encodes the specified string for use in an URL, converting special characters to quoted UTF-8 format.
Public methodStatic memberEscapeBdcFilter
Escapes the '*' wildcard character within the specified string.
Public methodStatic memberEscapeLikeWildcards
Escapes the like wildcard characters (% and _) within the specified string. Use this method to escape SharePoint search like terms and Model like terms
Public methodStatic memberEscapeSpecialChars
Escapes all occurrences of the specified special characters within the provided string. Special characters will be escaped with the provided escape character.
Public methodStatic memberEscapeSql
Escapes single quotes within the specified string.
Public methodStatic memberFindAccounts
Returns users or groups matching the given search text. The behavior of the search is dependant on the current authentication provider.
Public methodStatic memberFindListInAncestors
Starts at the specified web and bubbles up its ancestors searching for the list by title. Returns null if the list isn't found.
Public methodStatic memberFindTags(Guid, String, TagSearchMode)
Returns a collection of tags for the specified parent tag, name and search mode.
Public methodStatic memberFindTags(Tag, String, TagSearchMode)
Returns a collection of tags for the specified parent tag, name and search mode.
Public methodStatic memberGetMatchPointInformationalVersion
Returns the installed MatchPoint version and the hash of the corresponding commit.
Public methodStatic memberGetMatchPointInstanceUrl
Returns the MatchPoint Instance URL of the instance associated with the current web application.
Public methodStatic memberGetMatchPointVersion
Returns the installed MatchPoint version.
Public methodStatic memberGetNextId(String)
Returns the next number of the specified number range. If the number range does not exist, it will be created and initialized with 0.
Public methodStatic memberGetNextId(String, Int32)
Returns the next number of the specified number range. If the number range does not exist, it will be created and initialized with the given start number.
Public methodStatic memberGetRelativeDateString(DateTime)
Returns the time span between now and the given local time in the past as a text representation.
Public methodStatic memberGetRelativeDateString(DateTime, SPTimeZone)
Returns the time span between now and the given local time in the past as a text representation.
Public methodStatic memberGetRunningWorkflowInstances
Returns all workflow instances for the specified workflow configuration. If specified, workflows are only returned if they are waiting for the current user.
Public methodStatic memberGetScaledImageUrl
Public methodStatic memberGetSearchDefinition
Returns the search definition with the specified ID.
Public methodStatic memberGetSearchDefinitions
Returns all search definitions the current user has access to.
Public methodStatic memberGetSearchDefinitions(String, String, Int32)
Returns all search definitions the current user has access to.
Public methodStatic memberGetStringConstant
Returns a localized string retrieved from MatchPoint StringConstants for the given key.
Public methodStatic memberGetTag(String)
Returns the tag with the specified tag ID. Returns null if no tag was found.
Public methodStatic memberGetTag(Guid, String)
Returns the tag with the specified provider id and key. Returns null if no tag was found.
Public methodStatic memberGetTag(String, String)
Returns the tag with the specified provider name and key. Returns null if no tag was found.
Public methodStatic memberGetUserPresenceHtml
Returns a string containing the HTML required to render a presence indicator for Lync with the specified user information.
Public methodStatic memberHtmlUrlAttributeEncode
Encodes the specified url attribute and ensures that it's value is correctly formatted according to the content.
Public methodStatic memberIsInstanceAdministrator
Returns 'true' if the current user has administrative permissions on the MatchPoint instance administration site.
Public methodStatic memberIsUserInRole
Returns 'true' if the current user has the specified role on the current web.
Public methodStatic memberLoadControl(String)
Returns the user control with the specified name.
Public methodStatic memberLoadControlT(String)
Returns the user control with the specified name.
Public methodStatic memberLoadControlFromPath
Returns the user control from the specified virtual path.
Public methodStatic memberMakeGuid
Generates a new GUID.
Public methodStatic memberParseXml
Returns the XML node for the specified string.
Public methodStatic memberResolveAccount
Returns the resolved user accounts on the specified web.
Public methodStatic memberSplitKeywords
Splits the input string into keywords considering quotes.
Public methodStatic memberToGuid
Converts the input string to the type 'System.Guid'.
Top
See Also