Freigeben über


EmbeddedResourceReader.Read(Type, String) Methode

Definition

Achtung

Use Microsoft.AspNetCore.SpaServices.Extensions

Liest die angegebene eingebettete Ressource aus einer bestimmten 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

Parameter

assemblyContainingType
Type

Alle Type in der Assembly, deren Ressource gelesen werden soll.

path
String

Der Pfad der zu lesenden Ressource.

Gibt zurück

Der Inhalt der Ressource.

Attribute

Gilt für: