UtilResourceGetEmbeddedResource(String, Assembly) Method
Gets an embedded resource in the specified Assembly.
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 byte[] GetEmbeddedResource(
string name,
Assembly asm
)
Public Shared Function GetEmbeddedResource (
name As String,
asm As Assembly
) As Byte()
Dim name As String
Dim asm As [Assembly]
Dim returnValue As Byte()
returnValue = UtilResource.GetEmbeddedResource(name,
asm)
public:
static array<unsigned char>^ GetEmbeddedResource(
String^ name,
Assembly^ asm
)
static member GetEmbeddedResource :
name : string *
asm : Assembly -> byte[]
No code example is currently available or this language may not be supported.
- name String
-
The name of the resource.
- asm Assembly
-
The Assembly to look for the resource.
Byte
A
Byte array containing the bytes of the embedded resource.
This is a code example.
No code example is currently available or this language may not be supported.
Dim data As Byte() = GetEmbeddedResource("file.txt", Assembly.GetCallingAssembly())
Dim str As String = Encoding.Default.GetString(data)
Console.WriteLine(str)
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.