AssemblyBuilder.GetManifestResourceStream Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Loads the specified manifest resource from this assembly.
Overloads
GetManifestResourceStream(String) |
Loads the specified manifest resource from this assembly. |
GetManifestResourceStream(Type, String) |
Loads the specified manifest resource, scoped by the namespace of the specified type, from this assembly. |
GetManifestResourceStream(String)
- Source:
- AssemblyBuilder.cs
- Source:
- AssemblyBuilder.cs
- Source:
- AssemblyBuilder.cs
Loads the specified manifest resource from this assembly.
public:
override System::IO::Stream ^ GetManifestResourceStream(System::String ^ name);
public override System.IO.Stream? GetManifestResourceStream (string name);
public override System.IO.Stream GetManifestResourceStream (string name);
override this.GetManifestResourceStream : string -> System.IO.Stream
Public Overrides Function GetManifestResourceStream (name As String) As Stream
Parameters
- name
- String
The name of the manifest resource being requested.
Returns
A Stream representing this manifest resource.
Exceptions
This method is not currently supported.
The caller does not have the required permission.
Applies to
GetManifestResourceStream(Type, String)
- Source:
- AssemblyBuilder.cs
- Source:
- AssemblyBuilder.cs
- Source:
- AssemblyBuilder.cs
Loads the specified manifest resource, scoped by the namespace of the specified type, from this assembly.
public:
override System::IO::Stream ^ GetManifestResourceStream(Type ^ type, System::String ^ name);
public override System.IO.Stream? GetManifestResourceStream (Type type, string name);
public override System.IO.Stream GetManifestResourceStream (Type type, string name);
override this.GetManifestResourceStream : Type * string -> System.IO.Stream
Public Overrides Function GetManifestResourceStream (type As Type, name As String) As Stream
Parameters
- type
- Type
The type whose namespace is used to scope the manifest resource name.
- name
- String
The name of the manifest resource being requested.
Returns
A Stream representing this manifest resource.
Exceptions
This method is not currently supported.
The caller does not have the required permission.
Examples
If the full name of type
is "MyNameSpace.MyClasses" and name
is "Dot", GetManifestResourceStream
will search for a resource named MyNameSpace.Dot.
Remarks
The returned Stream has its file pointer set to the beginning of the resource.
See also
Applies to
Feedback
https://aka.ms/ContentUserFeedback.
Kommer snart: I hele 2024 udfaser vi GitHub-problemer som feedbackmekanisme for indhold og erstatter det med et nyt feedbacksystem. Du kan få flere oplysninger under:Indsend og få vist feedback om