메소드 | 설명 | |
---|---|---|
BytesToString ( long bytes ) : string |
Converts a byte number into a string, formatted using KB, MB or GB.
|
|
ComputeSecurityHash ( string username, string email, System.DateTime dateTime ) : string |
Computes the Hash of a Username, mixing it with other data, in order to avoid illegal Account activations.
|
|
DetectCurrentFullName ( ) : string |
Detects the full name of the current page using the Page and NS parameters in the query string.
|
|
DetectCurrentNamespace ( ) : string |
Detects the name of the current namespace using the NS parameter in the query string.
|
|
DetectCurrentNamespaceInfo ( ) : NamespaceInfo |
Detects the correct T:NamespaceInfo object associated to the current namespace using the NS parameter in the query string.
|
|
DetectCurrentPageInfo ( bool loadDefault ) : System.PageInfo |
Detects the correct T:PageInfo object associated to the current page using the Page and NS parameters in the query string.
|
|
DiskUsage ( string dir ) : long |
Computes the Disk Space Usage of a directory.
|
|
EscapeString ( string input ) : string |
Escapes bad characters in a string (pipes and \n).
|
|
ExtractDirectoryName ( string path ) : string |
Extracts the directory name from a path used in the Files Storage Providers.
|
|
GenerateRandomPassword ( ) : string |
Generates a random 10-char Password.
|
|
GetDirectoryName ( string filename ) : string |
Gets the name of a file's directory.
|
|
GetIncludes ( string nspace ) : string |
Gets all the included files for the HTML Head, such as CSS, JavaScript and Icon pluginAssemblies, for a namespace.
|
|
GetJavaScriptIncludes ( ) : string |
Gets all the JavaScript files to include.
|
|
GetMessageIdForAnchor ( System.DateTime messageDateTime ) : string |
Gets the message ID for HTML anchors.
|
|
GetUpdateStatus ( string url, string currentVersion, string &newVersion, string &newAssemblyUrl ) : UpdateStatus |
Gets the update status of a component. This method only works in Full Trust. |
|
GetVersionString ( int version ) : string |
Generates the standard 5-digit Page Version string.
|
|
HashDocumentNameForTemporaryIndex ( string value ) : uint |
Computes the hash value of a string that is value across application instances and versions.
|
|
IsRightToLeftCulture ( ) : bool |
Get the direction of the current culture.
|
|
ObfuscateText ( string input ) : string |
Obfuscates text, replacing each character with its HTML escaped sequence, for example a becomes
|
|
RemoveHtmlMarkup ( string html ) : string |
Removes all HTML tags from a text.
|
|
TimeSpanToString ( System.TimeSpan span ) : string |
Converts a Time Span to string.
|
|
UnescapeString ( string input ) : string |
Unescapes bad characters in a string (pipes and \n).
|
|
UrlDecode ( string input ) : string |
Executes URL-decoding, replacing spaces as processed by UrlEncode.
|
|
UrlEncode ( string input ) : string |
Executes URL-encoding, avoiding to use '+' for spaces.
|
메소드 | 설명 | |
---|---|---|
UppercaseInitial ( string value ) : string |
public static BytesToString ( long bytes ) : string | ||
bytes | long | The # of bytes. |
리턴 | string |
public static ComputeSecurityHash ( string username, string email, System.DateTime dateTime ) : string | ||
username | string | The Username. |
string | The email. | |
dateTime | System.DateTime | The date/time. |
리턴 | string |
public static DetectCurrentNamespaceInfo ( ) : NamespaceInfo | ||
리턴 | NamespaceInfo |
public static DetectCurrentPageInfo ( bool loadDefault ) : System.PageInfo | ||
loadDefault | bool | |
리턴 | System.PageInfo |
public static DiskUsage ( string dir ) : long | ||
dir | string | The directory. |
리턴 | long |
public static EscapeString ( string input ) : string | ||
input | string | The input string. |
리턴 | string |
public static ExtractDirectoryName ( string path ) : string | ||
path | string | The path, for example '/folder/blah/'. |
리턴 | string |
public static GetDirectoryName ( string filename ) : string | ||
filename | string | The filename. |
리턴 | string |
public static GetIncludes ( string nspace ) : string | ||
nspace | string | The namespace ( |
리턴 | string |
public static GetMessageIdForAnchor ( System.DateTime messageDateTime ) : string | ||
messageDateTime | System.DateTime | The message date/time. |
리턴 | string |
public static GetUpdateStatus ( string url, string currentVersion, string &newVersion, string &newAssemblyUrl ) : UpdateStatus | ||
url | string | The version file URL. |
currentVersion | string | The current version. |
newVersion | string | The new version, if any. |
newAssemblyUrl | string | The URL of the new assembly, if applicable and available. |
리턴 | UpdateStatus |
public static GetVersionString ( int version ) : string | ||
version | int | The Page version. |
리턴 | string |
public static HashDocumentNameForTemporaryIndex ( string value ) : uint | ||
value | string | The string to compute the hash of. |
리턴 | uint |
public static ObfuscateText ( string input ) : string | ||
input | string | The input text. |
리턴 | string |
public static RemoveHtmlMarkup ( string html ) : string | ||
html | string | The input HTML. |
리턴 | string |
public static TimeSpanToString ( System.TimeSpan span ) : string | ||
span | System.TimeSpan | The Time Span. |
리턴 | string |
public static UnescapeString ( string input ) : string | ||
input | string | The input string. |
리턴 | string |
public static UrlDecode ( string input ) : string | ||
input | string | The input string. |
리턴 | string |
public static UrlEncode ( string input ) : string | ||
input | string | The input string. |
리턴 | string |