共用方式為


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

要讀取之資源的路徑。

傳回

資源的內容。

屬性

適用於