HttpContextBase.GetGlobalResourceObject 方法

定義

在衍生類別中覆寫時,取得應用程式層級資源。

多載

GetGlobalResourceObject(String, String)

在衍生類別中覆寫時,根據指定的 ClassKeyResourceKey 屬性,取得應用程式層級資源物件。

GetGlobalResourceObject(String, String, CultureInfo)

在衍生類別中覆寫時,根據指定的 ClassKeyResourceKey 屬性以及 CultureInfo 物件,取得應用程式層級資源物件。

GetGlobalResourceObject(String, String)

在衍生類別中覆寫時,根據指定的 ClassKeyResourceKey 屬性,取得應用程式層級資源物件。

public:
 virtual System::Object ^ GetGlobalResourceObject(System::String ^ classKey, System::String ^ resourceKey);
public virtual object GetGlobalResourceObject (string classKey, string resourceKey);
abstract member GetGlobalResourceObject : string * string -> obj
override this.GetGlobalResourceObject : string * string -> obj
Public Overridable Function GetGlobalResourceObject (classKey As String, resourceKey As String) As Object

參數

classKey
String

字串,代表所要求之資源物件的 ClassKey 屬性。

resourceKey
String

字串,代表所要求之資源物件的 ResourceKey 屬性。

傳回

所要求的應用程式層級資源物件;如果找不到相符的資源物件,則為 null

例外狀況

適用於

GetGlobalResourceObject(String, String, CultureInfo)

在衍生類別中覆寫時,根據指定的 ClassKeyResourceKey 屬性以及 CultureInfo 物件,取得應用程式層級資源物件。

public:
 virtual System::Object ^ GetGlobalResourceObject(System::String ^ classKey, System::String ^ resourceKey, System::Globalization::CultureInfo ^ culture);
public virtual object GetGlobalResourceObject (string classKey, string resourceKey, System.Globalization.CultureInfo culture);
abstract member GetGlobalResourceObject : string * string * System.Globalization.CultureInfo -> obj
override this.GetGlobalResourceObject : string * string * System.Globalization.CultureInfo -> obj
Public Overridable Function GetGlobalResourceObject (classKey As String, resourceKey As String, culture As CultureInfo) As Object

參數

classKey
String

字串,代表所要求之資源物件的 ClassKey 屬性。

resourceKey
String

字串,代表所要求之資源物件的 ResourceKey 屬性。

culture
CultureInfo

字串,代表所要求之資源的 CultureInfo 物件。

傳回

所要求的應用程式層級資源物件 (已針對指定的文化特性當地語系化);如果找到相符的資源物件,則為 null

例外狀況

適用於