Κοινή χρήση μέσω


ResourceManagerStringLocalizerFactory.GetResourcePrefix Method

Definition

Overloads

GetResourcePrefix(TypeInfo)

Gets the resource prefix used to look up the resource.

GetResourcePrefix(String, String)

Gets the resource prefix used to look up the resource.

GetResourcePrefix(TypeInfo, String, String)

Gets the resource prefix used to look up the resource.

GetResourcePrefix(String, String, String)

Gets the resource prefix used to look up the resource.

GetResourcePrefix(TypeInfo)

Source:
ResourceManagerStringLocalizerFactory.cs
Source:
ResourceManagerStringLocalizerFactory.cs
Source:
ResourceManagerStringLocalizerFactory.cs

Gets the resource prefix used to look up the resource.

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

Parameters

typeInfo
TypeInfo

The type of the resource to be looked up.

Returns

The prefix for resource lookup.

Applies to

GetResourcePrefix(String, String)

Source:
ResourceManagerStringLocalizerFactory.cs
Source:
ResourceManagerStringLocalizerFactory.cs
Source:
ResourceManagerStringLocalizerFactory.cs

Gets the resource prefix used to look up the resource.

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

Parameters

baseResourceName
String

The name of the resource to be looked up

baseNamespace
String

The base namespace of the application.

Returns

The prefix for resource lookup.

Applies to

GetResourcePrefix(TypeInfo, String, String)

Source:
ResourceManagerStringLocalizerFactory.cs
Source:
ResourceManagerStringLocalizerFactory.cs
Source:
ResourceManagerStringLocalizerFactory.cs

Gets the resource prefix used to look up the resource.

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

Parameters

typeInfo
TypeInfo

The type of the resource to be looked up.

baseNamespace
String

The base namespace of the application.

resourcesRelativePath
String

The folder containing all resources.

Returns

The prefix for resource lookup.

Remarks

For the type "Sample.Controllers.Home" if there's a resourceRelativePath return "Sample.Resourcepath.Controllers.Home" if there isn't one then it would return "Sample.Controllers.Home".

Applies to

GetResourcePrefix(String, String, String)

Source:
ResourceManagerStringLocalizerFactory.cs
Source:
ResourceManagerStringLocalizerFactory.cs
Source:
ResourceManagerStringLocalizerFactory.cs

Gets the resource prefix used to look up the resource.

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

Parameters

location
String

The general location of the resource.

baseName
String

The base name of the resource.

resourceLocation
String

The location of the resource within location.

Returns

The resource prefix used to look up the resource.

Applies to