SystemWebSectionGroup.Globalization SystemWebSectionGroup.Globalization SystemWebSectionGroup.Globalization SystemWebSectionGroup.Globalization Property

定義

globalization セクションを取得します。Gets the globalization section.

public:
 property System::Web::Configuration::GlobalizationSection ^ Globalization { System::Web::Configuration::GlobalizationSection ^ get(); };
[System.Configuration.ConfigurationProperty("globalization")]
public System.Web.Configuration.GlobalizationSection Globalization { get; }
member this.Globalization : System.Web.Configuration.GlobalizationSection
Public ReadOnly Property Globalization As GlobalizationSection

プロパティ値

次のコード例は、既存の Web GlobalizationSectionアプリケーションの構成ファイルからオブジェクトを取得する方法を示しています。The following code example shows how to obtain the GlobalizationSection object from the configuration file of an existing Web application.

// Get the globalization section.
GlobalizationSection globalization =
    systemWeb.Globalization;
// Read section information.
info =
    globalization.SectionInformation;
name = info.SectionName;
type = info.Type;
declared = info.IsDeclared.ToString();
msg = String.Format(
    "Name:     {0}\nDeclared: {1}\nType:     {2}\n",
    name, declared, type);
' Get the globalization section.
Dim globalization _
As GlobalizationSection = _
systemWeb.Globalization
' Read section information.
info = globalization.SectionInformation
name = info.SectionName
type = info.Type
declared = info.IsDeclared.ToString()
msg = String.Format("Name:     {0}" + _
ControlChars.Lf + "Declared: {1}" + _
ControlChars.Lf + "Type:     {2}" + _
ControlChars.Lf, name, declared, type)

注釈

GlobalizationSection オブジェクトは、構成ファイルの globalization セクションを参照します。The GlobalizationSection object refers to the globalization section of the configuration file.

適用対象

こちらもご覧ください