-
Notifications
You must be signed in to change notification settings - Fork 36
M_CodeJam_Reflection_AssemblyExtensions_GetRequiredResourceStream
Andrew Koryavchenko edited this page Jun 17, 2018
·
7 revisions
Loads the specified manifest resource from this assembly, and checks if it exists.
Namespace: CodeJam.Reflection
Assembly: CodeJam (in CodeJam.dll) Version: 2.1.0.0
C#
public static Stream GetRequiredResourceStream(
this Assembly assembly,
string name
)
VB
<ExtensionAttribute>
Public Shared Function GetRequiredResourceStream (
assembly As Assembly,
name As String
) As Stream
F#
[<ExtensionAttribute>]
static member GetRequiredResourceStream :
assembly : Assembly *
name : string -> Stream
- assembly
- Type: System.Reflection.Assembly
Resource assembly. - name
- Type: System.String
The case-sensitive name of the manifest resource being requested.
Type: Stream
The manifest resource.
In Visual Basic and C#, you can call this method as an instance method on any object of type Assembly. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
Exception | Condition |
---|---|
ArgumentNullException | The name parameter is null. |
ArgumentException | Resource with specified name not found |