Click or drag to resize

IOUtilitiesExtractAssemblyResource Method

Extracts a resource from an assembly to a file.

Namespace:  callback.ShellBoost.Core.Utilities
Assembly:  callback.CBFSShell (in callback.CBFSShell.dll) Version: 22.0.0.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