EmbeddedResourceReader.Read(Type, String) 方法

定义

注意

Use Microsoft.AspNetCore.SpaServices.Extensions

从给定程序集中读取指定的嵌入资源。

public:
 static System::String ^ Read(Type ^ assemblyContainingType, System::String ^ path);
public static string Read (Type assemblyContainingType, string path);
[System.Obsolete("Use Microsoft.AspNetCore.SpaServices.Extensions")]
public static string Read (Type assemblyContainingType, string path);
static member Read : Type * string -> string
[<System.Obsolete("Use Microsoft.AspNetCore.SpaServices.Extensions")>]
static member Read : Type * string -> string
Public Shared Function Read (assemblyContainingType As Type, path As String) As String

参数

assemblyContainingType
Type

程序集中要读取其资源的任何 Type 对象。

path
String

要读取的资源的路径。

返回

资源的内容。

属性

适用于