共用方式為


ResourceManagerStringLocalizerFactory.GetResourceLocationAttribute 方法

定義

從提供的 Assembly 中取得 ResourceLocationAttribute

protected:
 virtual Microsoft::Extensions::Localization::ResourceLocationAttribute ^ GetResourceLocationAttribute(System::Reflection::Assembly ^ assembly);
protected virtual Microsoft.Extensions.Localization.ResourceLocationAttribute? GetResourceLocationAttribute (System.Reflection.Assembly assembly);
abstract member GetResourceLocationAttribute : System.Reflection.Assembly -> Microsoft.Extensions.Localization.ResourceLocationAttribute
override this.GetResourceLocationAttribute : System.Reflection.Assembly -> Microsoft.Extensions.Localization.ResourceLocationAttribute
Protected Overridable Function GetResourceLocationAttribute (assembly As Assembly) As ResourceLocationAttribute

參數

assembly
Assembly

取得 ResourceLocationAttribute 的來源組件。

傳回

與所指定 Assembly 建立關聯的 ResourceLocationAttribute

備註

此方法受到保護,且僅供測試之用。

適用於