Method | Description | |
---|---|---|
AppendTrailingSlash ( string path ) : string |
Appends a trailing backslash (\) to the path.
|
|
AppendTrailingSlash ( string path, char slash ) : string |
Appends a trailing slash (\ or /) to the path.
|
|
Combine ( ) : string |
Returns a combination of multiple paths.
|
|
CombineUrls ( ) : string |
Returns a combination of multiple urls.
|
|
GetApplicationDataDirectory ( ) : string |
Gets the application data directory for the company and product as defined the the assembly information of the entry assembly. If the entry assembly is
|
|
GetApplicationDataDirectory ( ApplicationDataTarget applicationDataTarget ) : string |
Gets the application data directory for the company and product as defined the the assembly information of the entry assembly. If the entry assembly is
|
|
GetApplicationDataDirectory ( ApplicationDataTarget applicationDataTarget, string productName ) : string |
Gets the application data directory for a specific product. If the folder does not exist, the folder is automatically created by this method.
|
|
GetApplicationDataDirectory ( ApplicationDataTarget applicationDataTarget, string companyName, string productName ) : string |
Gets the application data directory for a specific product of a specific company. If the folder does not exist, the folder is automatically created by this method.
|
|
GetApplicationDataDirectory ( string productName ) : string |
Gets the application data directory for a specific product. If the folder does not exist, the folder is automatically created by this method.
|
|
GetApplicationDataDirectory ( string companyName, string productName ) : string |
Gets the application data directory for a specific product of a specific company. If the folder does not exist, the folder is automatically created by this method.
|
|
GetApplicationDataDirectoryForAllUsers ( ) : string |
Gets the application data directory for the company and product as defined the the assembly information of the entry assembly. If the entry assembly is
|
|
GetApplicationDataDirectoryForAllUsers ( string productName ) : string |
Gets the application data directory for a specific product. If the folder does not exist, the folder is automatically created by this method.
|
|
GetApplicationDataDirectoryForAllUsers ( string companyName, string productName ) : string |
Gets the application data directory for a specific product of a specific company. If the folder does not exist, the folder is automatically created by this method.
|
|
GetDirectoryName ( string path ) : string |
Gets the name of the directory.
|
|
GetFileName ( string path ) : string |
Gets the name of the file.
|
|
GetFullPath ( string relativePath, string basePath ) : string |
Returns the full path for a relative path.
|
|
GetParentDirectory ( string path ) : string |
Gets the parent directory. This method will always strip the trailing backslash from the parent. |
|
GetRelativePath ( string fullPath, string basePath = null ) : string |
Returns a relative path string from a full path.
|
Method | Description | |
---|---|---|
RemoveStartAndTrailingSlashes ( string value ) : string |
Removes any slashes (\ or /) at the beginning and end of the string.
|
|
RemoveStartSlashes ( string value ) : string |
Removes any slashes (\ or /) at the beginning of the string.
|
|
RemoveTrailingSlashes ( string value ) : string |
Removes any slashes (\ or /) at the end of the string.
|
|
ReplacePathSlashesByUrlSlashes ( string value ) : string |
Replaces path slashes (\) by url slashes (/).
|
public static AppendTrailingSlash ( string path ) : string | ||
path | string | Path to append the trailing backslash to. |
return | string |
public static AppendTrailingSlash ( string path, char slash ) : string | ||
path | string | Path to append the trailing slash to. |
slash | char | Slash to append (\ or /). |
return | string |
public static GetApplicationDataDirectory ( ) : string | ||
return | string |
public static GetApplicationDataDirectory ( ApplicationDataTarget applicationDataTarget ) : string | ||
applicationDataTarget | ApplicationDataTarget | |
return | string |
public static GetApplicationDataDirectory ( ApplicationDataTarget applicationDataTarget, string productName ) : string | ||
applicationDataTarget | ApplicationDataTarget | The application data target. |
productName | string | Name of the product. |
return | string |
public static GetApplicationDataDirectory ( ApplicationDataTarget applicationDataTarget, string companyName, string productName ) : string | ||
applicationDataTarget | ApplicationDataTarget | The application data target. |
companyName | string | Name of the company. |
productName | string | Name of the product. |
return | string |
public static GetApplicationDataDirectory ( string productName ) : string | ||
productName | string | Name of the product. |
return | string |
public static GetApplicationDataDirectory ( string companyName, string productName ) : string | ||
companyName | string | Name of the company. |
productName | string | Name of the product. |
return | string |
public static GetApplicationDataDirectoryForAllUsers ( ) : string | ||
return | string |
public static GetApplicationDataDirectoryForAllUsers ( string productName ) : string | ||
productName | string | Name of the product. |
return | string |
public static GetApplicationDataDirectoryForAllUsers ( string companyName, string productName ) : string | ||
companyName | string | Name of the company. |
productName | string | Name of the product. |
return | string |
public static GetDirectoryName ( string path ) : string | ||
path | string | The path to get the directory name from. |
return | string |
public static GetFileName ( string path ) : string | ||
path | string | The path to get the file name from. |
return | string |
public static GetFullPath ( string relativePath, string basePath ) : string | ||
relativePath | string | Relative path to convert to a full path. |
basePath | string | Base path (a.k.a. working directory). |
return | string |
public static GetParentDirectory ( string path ) : string | ||
path | string | The path to get the parent directory from. |
return | string |
public static GetRelativePath ( string fullPath, string basePath = null ) : string | ||
fullPath | string | Full path to convert to relative path. |
basePath | string | The base path (a.k.a. working directory). If this parameter is |
return | string |