Class Util
Assembly: DotNetNuke.dll
Syntax
Constructors
Util()
Declaration
Fields
ASSEMBLY_Added
Declaration
public static string ASSEMBLY_Added
Field Value
ASSEMBLY_AddedBindingRedirect
Declaration
public static string ASSEMBLY_AddedBindingRedirect
Field Value
ASSEMBLY_InUse
Declaration
public static string ASSEMBLY_InUse
Field Value
ASSEMBLY_Registered
Declaration
public static string ASSEMBLY_Registered
Field Value
ASSEMBLY_RemovedBindingRedirect
Declaration
public static string ASSEMBLY_RemovedBindingRedirect
Field Value
ASSEMBLY_UnRegistered
Declaration
public static string ASSEMBLY_UnRegistered
Field Value
ASSEMBLY_Updated
Declaration
public static string ASSEMBLY_Updated
Field Value
AUTHENTICATION_LoginSrcMissing
Declaration
public static string AUTHENTICATION_LoginSrcMissing
Field Value
AUTHENTICATION_ReadSuccess
Declaration
public static string AUTHENTICATION_ReadSuccess
Field Value
AUTHENTICATION_Registered
Declaration
public static string AUTHENTICATION_Registered
Field Value
AUTHENTICATION_SettingsSrcMissing
Declaration
public static string AUTHENTICATION_SettingsSrcMissing
Field Value
AUTHENTICATION_TypeMissing
Declaration
public static string AUTHENTICATION_TypeMissing
Field Value
AUTHENTICATION_UnRegistered
Declaration
public static string AUTHENTICATION_UnRegistered
Field Value
BackupInstallPackageFolder
Declaration
public const string BackupInstallPackageFolder = "App_Data/ExtensionPackages/"
Field Value
CLEANUP_ProcessComplete
Declaration
public static string CLEANUP_ProcessComplete
Field Value
CLEANUP_ProcessError
Declaration
public static string CLEANUP_ProcessError
Field Value
CLEANUP_Processing
Declaration
public static string CLEANUP_Processing
Field Value
COMPONENT_Installed
Declaration
public static string COMPONENT_Installed
Field Value
COMPONENT_RolledBack
Declaration
public static string COMPONENT_RolledBack
Field Value
COMPONENT_RollingBack
Declaration
public static string COMPONENT_RollingBack
Field Value
COMPONENT_Skipped
Declaration
public static string COMPONENT_Skipped
Field Value
COMPONENT_UnInstalled
Declaration
public static string COMPONENT_UnInstalled
Field Value
CONFIG_Committed
Declaration
public static string CONFIG_Committed
Field Value
CONFIG_RolledBack
Declaration
public static string CONFIG_RolledBack
Field Value
CONFIG_Updated
Declaration
public static string CONFIG_Updated
Field Value
DEFAULT_MANIFESTEXT
Declaration
public const string DEFAULT_MANIFESTEXT = ".manifest"
Field Value
DNN_Reading
Declaration
public static string DNN_Reading
Field Value
DNN_ReadingComponent
Declaration
public static string DNN_ReadingComponent
Field Value
DNN_ReadingPackage
Declaration
public static string DNN_ReadingPackage
Field Value
DNN_Success
Declaration
public static string DNN_Success
Field Value
EVENTMESSAGE_CommandMissing
Declaration
public static string EVENTMESSAGE_CommandMissing
Field Value
EVENTMESSAGE_TypeMissing
Declaration
public static string EVENTMESSAGE_TypeMissing
Field Value
EXCEPTION
Declaration
public static string EXCEPTION
Field Value
EXCEPTION_FileLoad
Declaration
public static string EXCEPTION_FileLoad
Field Value
EXCEPTION_FileRead
Declaration
public static string EXCEPTION_FileRead
Field Value
EXCEPTION_GlobDotDotNotSupportedInCleanup
Declaration
public static string EXCEPTION_GlobDotDotNotSupportedInCleanup
Field Value
EXCEPTION_InstallerCreate
Declaration
public static string EXCEPTION_InstallerCreate
Field Value
EXCEPTION_MissingDnn
Declaration
public static string EXCEPTION_MissingDnn
Field Value
EXCEPTION_MultipleDnn
Declaration
public static string EXCEPTION_MultipleDnn
Field Value
EXCEPTION_NameMissing
Declaration
public static string EXCEPTION_NameMissing
Field Value
EXCEPTION_Type
Declaration
public static string EXCEPTION_Type
Field Value
EXCEPTION_TypeMissing
Declaration
public static string EXCEPTION_TypeMissing
Field Value
EXCEPTION_VersionMissing
Declaration
public static string EXCEPTION_VersionMissing
Field Value
FILES_CreatedResources
Declaration
public static string FILES_CreatedResources
Field Value
FILES_Expanding
Declaration
public static string FILES_Expanding
Field Value
FILES_Loading
Declaration
public static string FILES_Loading
Field Value
FILES_Reading
Declaration
public static string FILES_Reading
Field Value
FILES_ReadingEnd
Declaration
public static string FILES_ReadingEnd
Field Value
FILE_CreateBackup
Declaration
public static string FILE_CreateBackup
Field Value
FILE_Created
Declaration
public static string FILE_Created
Field Value
FILE_Deleted
Declaration
public static string FILE_Deleted
Field Value
FILE_Found
Declaration
public static string FILE_Found
Field Value
FILE_Loading
Declaration
public static string FILE_Loading
Field Value
FILE_NotAllowed
Declaration
public static string FILE_NotAllowed
Field Value
FILE_NotFound
Declaration
public static string FILE_NotFound
Field Value
FILE_ReadSuccess
Declaration
public static string FILE_ReadSuccess
Field Value
FILE_RestoreBackup
Declaration
public static string FILE_RestoreBackup
Field Value
FOLDER_Created
Declaration
public static string FOLDER_Created
Field Value
FOLDER_Deleted
Declaration
public static string FOLDER_Deleted
Field Value
FOLDER_DeletedBackup
Declaration
public static string FOLDER_DeletedBackup
Field Value
INSTALL_Aborted
Declaration
public static string INSTALL_Aborted
Field Value
INSTALL_Committed
Declaration
public static string INSTALL_Committed
Field Value
INSTALL_Compatibility
Declaration
public static string INSTALL_Compatibility
Field Value
INSTALL_Dependencies
Declaration
public static string INSTALL_Dependencies
Field Value
INSTALL_Failed
Declaration
public static string INSTALL_Failed
Field Value
INSTALL_Namespace
Declaration
public static string INSTALL_Namespace
Field Value
INSTALL_Package
Declaration
public static string INSTALL_Package
Field Value
INSTALL_Permissions
Declaration
public static string INSTALL_Permissions
Field Value
INSTALL_Start
Declaration
public static string INSTALL_Start
Field Value
INSTALL_Success
Declaration
public static string INSTALL_Success
Field Value
INSTALL_Version
Declaration
public static string INSTALL_Version
Field Value
LANGUAGE_PortalsEnabled
Declaration
public static string LANGUAGE_PortalsEnabled
Field Value
LANGUAGE_Registered
Declaration
public static string LANGUAGE_Registered
Field Value
LANGUAGE_UnRegistered
Declaration
public static string LANGUAGE_UnRegistered
Field Value
LIBRARY_ReadSuccess
Declaration
public static string LIBRARY_ReadSuccess
Field Value
LIBRARY_Registered
Declaration
public static string LIBRARY_Registered
Field Value
LIBRARY_UnRegistered
Declaration
public static string LIBRARY_UnRegistered
Field Value
MODULE_AdminPageAdded
Declaration
public static string MODULE_AdminPageAdded
Field Value
Declaration
public static string MODULE_AdminPageRemoved
Field Value
MODULE_AdminPagemoduleAdded
Declaration
public static string MODULE_AdminPagemoduleAdded
Field Value
MODULE_AdminPagemoduleRemoved
Declaration
public static string MODULE_AdminPagemoduleRemoved
Field Value
MODULE_ControlKeyMissing
Declaration
public static string MODULE_ControlKeyMissing
Field Value
MODULE_ControlTypeMissing
Declaration
public static string MODULE_ControlTypeMissing
Field Value
MODULE_FriendlyNameMissing
Declaration
public static string MODULE_FriendlyNameMissing
Field Value
MODULE_HostPageAdded
Declaration
public static string MODULE_HostPageAdded
Field Value
Declaration
public static string MODULE_HostPageRemoved
Field Value
MODULE_HostPagemoduleAdded
Declaration
public static string MODULE_HostPagemoduleAdded
Field Value
MODULE_HostPagemoduleRemoved
Declaration
public static string MODULE_HostPagemoduleRemoved
Field Value
MODULE_InvalidVersion
Declaration
public static string MODULE_InvalidVersion
Field Value
MODULE_ReadSuccess
Declaration
public static string MODULE_ReadSuccess
Field Value
MODULE_Registered
Declaration
public static string MODULE_Registered
Field Value
MODULE_UnRegistered
Declaration
public static string MODULE_UnRegistered
Field Value
PACKAGE_NoLicense
Declaration
public static string PACKAGE_NoLicense
Field Value
PACKAGE_NoReleaseNotes
Declaration
public static string PACKAGE_NoReleaseNotes
Field Value
PACKAGE_UnRecognizable
Declaration
public static string PACKAGE_UnRecognizable
Field Value
REGEX_Version
Declaration
public static string REGEX_Version
Field Value
SECURITY_Installer
Declaration
public static string SECURITY_Installer
Field Value
SECURITY_NotRegistered
Declaration
public static string SECURITY_NotRegistered
Field Value
SKIN_BeginProcessing
Declaration
public static string SKIN_BeginProcessing
Field Value
SKIN_EndProcessing
Declaration
public static string SKIN_EndProcessing
Field Value
SKIN_Installed
Declaration
public static string SKIN_Installed
Field Value
SKIN_Registered
Declaration
public static string SKIN_Registered
Field Value
SKIN_UnRegistered
Declaration
public static string SKIN_UnRegistered
Field Value
SQL_Begin
Declaration
public static string SQL_Begin
Field Value
SQL_BeginFile
Declaration
public static string SQL_BeginFile
Field Value
SQL_BeginUnInstall
Declaration
public static string SQL_BeginUnInstall
Field Value
SQL_Committed
Declaration
public static string SQL_Committed
Field Value
SQL_End
Declaration
public static string SQL_End
Field Value
SQL_EndFile
Declaration
public static string SQL_EndFile
Field Value
SQL_EndUnInstall
Declaration
public static string SQL_EndUnInstall
Field Value
SQL_Exceptions
Declaration
public static string SQL_Exceptions
Field Value
SQL_Executing
Declaration
public static string SQL_Executing
Field Value
SQL_Manifest_BadFile
Declaration
public static string SQL_Manifest_BadFile
Field Value
SQL_Manifest_Error
Declaration
public static string SQL_Manifest_Error
Field Value
SQL_RolledBack
Declaration
public static string SQL_RolledBack
Field Value
UNINSTALL_Failure
Declaration
public static string UNINSTALL_Failure
Field Value
UNINSTALL_Start
Declaration
public static string UNINSTALL_Start
Field Value
UNINSTALL_StartComp
Declaration
public static string UNINSTALL_StartComp
Field Value
UNINSTALL_Success
Declaration
public static string UNINSTALL_Success
Field Value
UNINSTALL_SuccessComp
Declaration
public static string UNINSTALL_SuccessComp
Field Value
UNINSTALL_Warnings
Declaration
public static string UNINSTALL_Warnings
Field Value
UNINSTALL_WarningsComp
Declaration
public static string UNINSTALL_WarningsComp
Field Value
URLPROVIDER_NameMissing
Declaration
public static string URLPROVIDER_NameMissing
Field Value
URLPROVIDER_ReadSuccess
Declaration
public static string URLPROVIDER_ReadSuccess
Field Value
URLPROVIDER_Registered
Declaration
public static string URLPROVIDER_Registered
Field Value
URLPROVIDER_TypeMissing
Declaration
public static string URLPROVIDER_TypeMissing
Field Value
URLPROVIDER_UnRegistered
Declaration
public static string URLPROVIDER_UnRegistered
Field Value
WRITER_AddFileToManifest
Declaration
public static string WRITER_AddFileToManifest
Field Value
WRITER_CreateArchive
Declaration
public static string WRITER_CreateArchive
Field Value
WRITER_CreatedManifest
Declaration
public static string WRITER_CreatedManifest
Field Value
WRITER_CreatedPackage
Declaration
public static string WRITER_CreatedPackage
Field Value
WRITER_CreatingManifest
Declaration
public static string WRITER_CreatingManifest
Field Value
WRITER_CreatingPackage
Declaration
public static string WRITER_CreatingPackage
Field Value
WRITER_SaveFileError
Declaration
public static string WRITER_SaveFileError
Field Value
WRITER_SavedFile
Declaration
public static string WRITER_SavedFile
Field Value
Methods
BackupFile(InstallFile, string, Logger)
Declaration
public static void BackupFile(InstallFile installFile, string basePath, Logger log)
Parameters
CopyFile(InstallFile, string, Logger)
Declaration
public static void CopyFile(InstallFile installFile, string basePath, Logger log)
Parameters
DeleteFile(InstallFile, string, Logger)
Declaration
public static void DeleteFile(InstallFile installFile, string basePath, Logger log)
Parameters
DeleteFile(string, string, Logger)
Declaration
public static void DeleteFile(string fileName, string basePath, Logger log)
Parameters
DeployExtension(WebResponse, string, string)
Declaration
public static void DeployExtension(WebResponse wr, string myfile, string installFolder)
Parameters
GetExternalRequest(string, byte[], string, string, string, string, int, bool, string, string, out string)
Declaration
public static WebResponse GetExternalRequest(string url, byte[] data, string username, string password, string domain, string proxyAddress, int proxyPort, bool doPOST, string userAgent, string referer, out string filename)
Parameters
Returns
GetExternalRequest(string, byte[], string, string, string, string, int, bool, string, string, out string, int)
Declaration
public static WebResponse GetExternalRequest(string url, byte[] data, string username, string password, string domain, string proxyAddress, int proxyPort, bool doPOST, string userAgent, string referer, out string filename, int requestTimeout)
Parameters
Returns
GetExternalRequest(string, byte[], string, string, string, string, int, string, string, bool, string, string, out string)
Declaration
public static WebResponse GetExternalRequest(string url, byte[] data, string username, string password, string domain, string proxyAddress, int proxyPort, string proxyUsername, string proxyPassword, bool doPOST, string userAgent, string referer, out string filename)
Parameters
Returns
GetExternalRequest(string, byte[], string, string, string, string, int, string, string, bool, string, string, out string, int)
Declaration
public static WebResponse GetExternalRequest(string url, byte[] data, string username, string password, string domain, string proxyAddress, int proxyPort, string proxyUsername, string proxyPassword, bool doPOST, string userAgent, string referer, out string filename, int requestTimeout)
Parameters
Returns
GetLocalizedString(string)
Declaration
public static string GetLocalizedString(string key)
Parameters
Type |
Name |
Description |
string |
key |
|
Returns
GetPackageBackupName(PackageInfo)
Declaration
public static string GetPackageBackupName(PackageInfo package)
Parameters
Returns
GetPackageBackupPath(PackageInfo)
Declaration
public static string GetPackageBackupPath(PackageInfo package)
Parameters
Returns
InstallURL(int, string)
Declaration
public static string InstallURL(int tabId, string type)
Parameters
Returns
InstallURL(int, string, string)
Declaration
public static string InstallURL(int tabId, string returnUrl, string type)
Parameters
Returns
InstallURL(int, string, string, string)
Declaration
public static string InstallURL(int tabId, string returnUrl, string type, string package)
Parameters
Returns
IsFileValid(InstallFile, string)
Declaration
public static bool IsFileValid(InstallFile file, string packageWhiteList)
Parameters
Returns
PackageWriterURL(ModuleInstanceContext, int)
Declaration
public static string PackageWriterURL(ModuleInstanceContext context, int packageId)
Parameters
Returns
ParsePackageIconFile(PackageInfo)
Declaration
public static string ParsePackageIconFile(PackageInfo package)
Parameters
Returns
ParsePackageIconFileName(PackageInfo)
Declaration
public static string ParsePackageIconFileName(PackageInfo package)
Parameters
Returns
ReadAttribute(XPathNavigator, string)
Declaration
public static string ReadAttribute(XPathNavigator nav, string attributeName)
Parameters
Returns
ReadAttribute(XPathNavigator, string, Logger, string)
Declaration
public static string ReadAttribute(XPathNavigator nav, string attributeName, Logger log, string logmessage)
Parameters
Returns
ReadAttribute(XPathNavigator, string, bool, Logger, string, string)
Declaration
public static string ReadAttribute(XPathNavigator nav, string attributeName, bool isRequired, Logger log, string logmessage, string defaultValue)
Parameters
Returns
ReadElement(XPathNavigator, string)
Declaration
public static string ReadElement(XPathNavigator nav, string elementName)
Parameters
Returns
ReadElement(XPathNavigator, string, Logger, string)
Declaration
public static string ReadElement(XPathNavigator nav, string elementName, Logger log, string logmessage)
Parameters
Returns
ReadElement(XPathNavigator, string, bool, Logger, string, string)
Declaration
public static string ReadElement(XPathNavigator nav, string elementName, bool isRequired, Logger log, string logmessage, string defaultValue)
Parameters
Returns
ReadElement(XPathNavigator, string, string)
Declaration
public static string ReadElement(XPathNavigator nav, string elementName, string defaultValue)
Parameters
Returns
RestoreFile(InstallFile, string, Logger)
Declaration
public static void RestoreFile(InstallFile installFile, string basePath, Logger log)
Parameters
TryToCreateAndExecute(string, Action<FileStream>, int)
Declaration
public static bool TryToCreateAndExecute(string path, Action<FileStream> action, int milliSecondMax = -1)
Parameters
Returns
UnInstallURL(int, int)
Declaration
public static string UnInstallURL(int tabId, int packageId)
Parameters
Type |
Name |
Description |
int |
tabId |
|
int |
packageId |
|
Returns
UnInstallURL(int, int, string)
Declaration
public static string UnInstallURL(int tabId, int packageId, string returnUrl)
Parameters
Type |
Name |
Description |
int |
tabId |
|
int |
packageId |
|
string |
returnUrl |
|
Returns
WriteStream(Stream, string)
Declaration
public static void WriteStream(Stream sourceStream, string destFileName)
Parameters
Type |
Name |
Description |
Stream |
sourceStream |
|
string |
destFileName |
|
Extension Methods