ResourceManagerStringLocalizerFactory.GetResourcePrefix 方法

定义

重载

GetResourcePrefix(TypeInfo)

获取用于查找资源的资源前缀。

GetResourcePrefix(String, String)

获取用于查找资源的资源前缀。

GetResourcePrefix(TypeInfo, String, String)

获取用于查找资源的资源前缀。

GetResourcePrefix(String, String, String)

获取用于查找资源的资源前缀。

GetResourcePrefix(TypeInfo)

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

获取用于查找资源的资源前缀。

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

参数

typeInfo
TypeInfo

要查找的资源的类型。

返回

用于查找资源的前缀。

适用于

GetResourcePrefix(String, String)

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

获取用于查找资源的资源前缀。

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

参数

baseResourceName
String

要查找的资源的名称

baseNamespace
String

应用程序的基命名空间。

返回

用于查找资源的前缀。

适用于

GetResourcePrefix(TypeInfo, String, String)

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

获取用于查找资源的资源前缀。

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

参数

typeInfo
TypeInfo

要查找的资源的类型。

baseNamespace
String

应用程序的基命名空间。

resourcesRelativePath
String

包含所有资源的文件夹。

返回

用于查找资源的前缀。

注解

对于类型“Sample.Controllers.Home”,如果有 resourceRelativePath 返回“Sample.Resourcepath.Controllers.Home”,如果没有,则返回“Sample.Controllers.Home”。

适用于

GetResourcePrefix(String, String, String)

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

获取用于查找资源的资源前缀。

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

参数

location
String

资源的一般位置。

baseName
String

资源的基名称。

resourceLocation
String

location 中资源的位置。

返回

用于查找资源的资源前缀。

适用于