EmbeddedResourceReader.Read(Type, String) Method

Definition

Caution

Use Microsoft.AspNetCore.SpaServices.Extensions

Reads the specified embedded resource from a given assembly.

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

Parameters

assemblyContainingType
Type

Any Type in the assembly whose resource is to be read.

path
String

The path of the resource to be read.

Returns

The contents of the resource.

Attributes

Applies to