Class Utility
Defines a set of utility methods.
Inheritance
System.Object
Utility
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Quark.CMSAdapters.Core
Assembly: Quark.CMSAdapters.Core.dll
Syntax
public class Utility
Methods
DeleteLocalFiles(String[], Nullable<FileDeletionOptions>)
Deletes the local files as per the file deletion option.
Declaration
public static void DeleteLocalFiles(string[] filePaths, FileDeletionOptions? fileDeletionOption = default(FileDeletionOptions? ))
Parameters
Type | Name | Description |
---|---|---|
System.String[] | filePaths | The file paths. |
System.Nullable<FileDeletionOptions> | fileDeletionOption | The file deletion options. |
GetRelativeSaveLocation(SaveLocationChoices, List<String>, String)
Gets the relative save location.
Declaration
public static List<string> GetRelativeSaveLocation(SaveLocationChoices saveLocationChoice, List<string> parentSaveLocation, string relativeSaveLocation)
Parameters
Type | Name | Description |
---|---|---|
SaveLocationChoices | saveLocationChoice | The save location choice. |
System.Collections.Generic.List<System.String> | parentSaveLocation | The parent save location. |
System.String | relativeSaveLocation | The relative save location. |
Returns
Type | Description |
---|---|
System.Collections.Generic.List<System.String> |
SetForegroundWindow(IntPtr)
Set forground window.
Declaration
public static extern bool SetForegroundWindow(IntPtr hWnd)
Parameters
Type | Name | Description |
---|---|---|
System.IntPtr | hWnd | handle value. |
Returns
Type | Description |
---|---|
System.Boolean | boolean value. |