共用方式為


ResourceManagerStringLocalizerFactory.GetResourcePrefix 方法

定義

多載

GetResourcePrefix(TypeInfo)

取得用來查閱資源的資源前置詞。

GetResourcePrefix(String, String)

取得用來查閱資源的資源前置詞。

GetResourcePrefix(TypeInfo, String, String)

取得用來查閱資源的資源前置詞。

GetResourcePrefix(String, String, String)

取得用來查閱資源的資源前置詞。

GetResourcePrefix(TypeInfo)

來源:
ResourceManagerStringLocalizerFactory.cs
來源:
ResourceManagerStringLocalizerFactory.cs
來源:
ResourceManagerStringLocalizerFactory.cs
來源:
ResourceManagerStringLocalizerFactory.cs
來源:
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)

來源:
ResourceManagerStringLocalizerFactory.cs
來源:
ResourceManagerStringLocalizerFactory.cs
來源:
ResourceManagerStringLocalizerFactory.cs
來源:
ResourceManagerStringLocalizerFactory.cs
來源:
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)

來源:
ResourceManagerStringLocalizerFactory.cs
來源:
ResourceManagerStringLocalizerFactory.cs
來源:
ResourceManagerStringLocalizerFactory.cs
來源:
ResourceManagerStringLocalizerFactory.cs
來源:
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)

來源:
ResourceManagerStringLocalizerFactory.cs
來源:
ResourceManagerStringLocalizerFactory.cs
來源:
ResourceManagerStringLocalizerFactory.cs
來源:
ResourceManagerStringLocalizerFactory.cs
來源:
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 內的位置。

傳回

用來查閱資源的資源前置詞。

適用於