ResourceManagerStringLocalizerFactory.GetResourcePrefix Metod

Definition

Överlagringar

Name Description
GetResourcePrefix(TypeInfo)

Hämtar resursprefixet som används för att leta upp resursen.

GetResourcePrefix(String, String)

Hämtar resursprefixet som används för att leta upp resursen.

GetResourcePrefix(TypeInfo, String, String)

Hämtar resursprefixet som används för att leta upp resursen.

GetResourcePrefix(String, String, String)

Hämtar resursprefixet som används för att leta upp resursen.

GetResourcePrefix(TypeInfo)

Källa:
ResourceManagerStringLocalizerFactory.cs
Källa:
ResourceManagerStringLocalizerFactory.cs
Källa:
ResourceManagerStringLocalizerFactory.cs
Källa:
ResourceManagerStringLocalizerFactory.cs
Källa:
ResourceManagerStringLocalizerFactory.cs

Hämtar resursprefixet som används för att leta upp resursen.

protected:
 virtual System::String ^ GetResourcePrefix(System::Reflection::TypeInfo ^ typeInfo);
protected virtual string GetResourcePrefix(System.Reflection.TypeInfo typeInfo);
abstract member GetResourcePrefix : System.Reflection.TypeInfo -> string
override this.GetResourcePrefix : System.Reflection.TypeInfo -> string
Protected Overridable Function GetResourcePrefix (typeInfo As TypeInfo) As String

Parametrar

typeInfo
TypeInfo

Vilken typ av resurs som ska letas upp.

Returer

Prefixet för resurssökning.

Gäller för

GetResourcePrefix(String, String)

Källa:
ResourceManagerStringLocalizerFactory.cs
Källa:
ResourceManagerStringLocalizerFactory.cs
Källa:
ResourceManagerStringLocalizerFactory.cs
Källa:
ResourceManagerStringLocalizerFactory.cs
Källa:
ResourceManagerStringLocalizerFactory.cs

Hämtar resursprefixet som används för att leta upp resursen.

protected:
 virtual System::String ^ GetResourcePrefix(System::String ^ baseResourceName, System::String ^ baseNamespace);
protected virtual string GetResourcePrefix(string baseResourceName, string baseNamespace);
abstract member GetResourcePrefix : string * string -> string
override this.GetResourcePrefix : string * string -> string
Protected Overridable Function GetResourcePrefix (baseResourceName As String, baseNamespace As String) As String

Parametrar

baseResourceName
String

Namnet på resursen som ska letas upp

baseNamespace
String

Programmets basnamnområde.

Returer

Prefixet för resurssökning.

Gäller för

GetResourcePrefix(TypeInfo, String, String)

Källa:
ResourceManagerStringLocalizerFactory.cs
Källa:
ResourceManagerStringLocalizerFactory.cs
Källa:
ResourceManagerStringLocalizerFactory.cs
Källa:
ResourceManagerStringLocalizerFactory.cs
Källa:
ResourceManagerStringLocalizerFactory.cs

Hämtar resursprefixet som används för att leta upp resursen.

protected:
 virtual System::String ^ GetResourcePrefix(System::Reflection::TypeInfo ^ typeInfo, System::String ^ baseNamespace, System::String ^ resourcesRelativePath);
protected virtual string GetResourcePrefix(System.Reflection.TypeInfo typeInfo, string? baseNamespace, string? resourcesRelativePath);
abstract member GetResourcePrefix : System.Reflection.TypeInfo * string * string -> string
override this.GetResourcePrefix : System.Reflection.TypeInfo * string * string -> string
Protected Overridable Function GetResourcePrefix (typeInfo As TypeInfo, baseNamespace As String, resourcesRelativePath As String) As String

Parametrar

typeInfo
TypeInfo

Vilken typ av resurs som ska letas upp.

baseNamespace
String

Programmets basnamnområde.

resourcesRelativePath
String

Mappen som innehåller alla resurser.

Returer

Prefixet för resurssökning.

Kommentarer

För typen "Sample.Controllers.Home" om det finns en resourceRelativePath returnerar "Sample.Resourcepath.Controllers.Home" om det inte finns någon så returnerar den "Sample.Controllers.Home".

Gäller för

GetResourcePrefix(String, String, String)

Källa:
ResourceManagerStringLocalizerFactory.cs
Källa:
ResourceManagerStringLocalizerFactory.cs
Källa:
ResourceManagerStringLocalizerFactory.cs
Källa:
ResourceManagerStringLocalizerFactory.cs
Källa:
ResourceManagerStringLocalizerFactory.cs

Hämtar resursprefixet som används för att leta upp resursen.

protected:
 virtual System::String ^ GetResourcePrefix(System::String ^ location, System::String ^ baseName, System::String ^ resourceLocation);
protected virtual string GetResourcePrefix(string location, string baseName, string resourceLocation);
abstract member GetResourcePrefix : string * string * string -> string
override this.GetResourcePrefix : string * string * string -> string
Protected Overridable Function GetResourcePrefix (location As String, baseName As String, resourceLocation As String) As String

Parametrar

location
String

Resursens allmänna plats.

baseName
String

Resursens basnamn.

resourceLocation
String

Platsen för resursen i location.

Returer

Resursprefixet som används för att leta upp resursen.

Gäller för