Click or drag to resize

IOUtilitiesExtractAssemblyResource Method

Extracts a resource from an assembly to a file.

Namespace:  ShellBoost.Core.Utilities
Assembly:  ShellBoost.Core (in ShellBoost.Core.dll) Version: 1.8.3.0
Syntax
C#
public static string ExtractAssemblyResource(
	Assembly assembly,
	string directoryPath,
	string name,
	bool refresh = false
)

Parameters

assembly
Type: System.ReflectionAssembly
The assembly.
directoryPath
Type: SystemString
The directory path where to store the extracted data file.
name
Type: SystemString
The resource name.
refresh (Optional)
Type: SystemBoolean
if set to true the file will be overwritten even if it already exists.

Return Value

Type: String
The extracted data file path.
Exceptions
ExceptionCondition
ArgumentNullExceptionname is null or directoryPath is null.
See Also