UtilResourceExtractResourceToDisk Method
Extracts a resource to disk.
Namespace: DevCase.Core.Application.ResourcesAssembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
public static void ExtractResourceToDisk(
byte[] resource,
string targetFilepath,
bool overwrite = false
)
Public Shared Sub ExtractResourceToDisk (
resource As Byte(),
targetFilepath As String,
Optional overwrite As Boolean = false
)
Dim resource As Byte()
Dim targetFilepath As String
Dim overwrite As Boolean
UtilResource.ExtractResourceToDisk(resource,
targetFilepath, overwrite)
public:
static void ExtractResourceToDisk(
array<unsigned char>^ resource,
String^ targetFilepath,
bool overwrite = false
)
static member ExtractResourceToDisk :
resource : byte[] *
targetFilepath : string *
?overwrite : bool
(* Defaults:
let _overwrite = defaultArg overwrite false
*)
-> unit
No code example is currently available or this language may not be supported.
Parameters
- resource Byte
-
The resource to extract.
- targetFilepath String
-
The target filepath where to save the resource data.
- overwrite Boolean (Optional)
-
If set to , overwites any existing file,
otherwise, if the file already exists, a IOException exception is thrown.
This is a code example.
No code example is currently available or this language may not be supported.
ExtractResourceToDisk(My.Resources.MyTextfile, "C:\File.txt")
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.