AssemblyBuilder.GetManifestResourceStream Метод
Определение
Загружает указанный ресурс манифеста из сборки.Loads the specified manifest resource from this assembly.
Перегрузки
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)
Загружает указанный ресурс манифеста из сборки.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
Параметры
- name
- String
Имя запрашиваемого ресурса манифеста.The name of the manifest resource being requested.
Возвращаемое значение
Stream, представляющий этот ресурс манифеста.A Stream representing this manifest resource.
Исключения
В настоящее время этот метод не поддерживается.This method is not currently supported.
У вызывающего объекта отсутствует необходимое разрешение.The caller does not have the required permission.
Применяется к
GetManifestResourceStream(Type, String)
Загружает из сборки указанный ресурс манифеста с учетом ограничения области действия пространства имен по типу.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
Параметры
- type
- Type
Тип, пространством имен которого ограничена область действия имени ресурса манифеста.The type whose namespace is used to scope the manifest resource name.
- name
- String
Имя запрашиваемого ресурса манифеста.The name of the manifest resource being requested.
Возвращаемое значение
Stream, представляющий этот ресурс манифеста.A Stream representing this manifest resource.
Исключения
В настоящее время этот метод не поддерживается.This method is not currently supported.
У вызывающего объекта отсутствует необходимое разрешение.The caller does not have the required permission.
Примеры
Если полное имя имеет значение type
"MyNamespace. myclasss" и name
имеет значение "точка", GetManifestResourceStream
будет искать ресурс с именем MyNamespace. dot.If the full name of type
is "MyNameSpace.MyClasses" and name
is "Dot", GetManifestResourceStream
will search for a resource named MyNameSpace.Dot.
Комментарии
Возвращаемый Stream указатель файла имеет значение, установленное в начало ресурса.The returned Stream has its file pointer set to the beginning of the resource.