CultureAndRegionInfoBuilder.Unregister メソッドとは? わかりやすく解説

Weblio 辞書 > コンピュータ > .NET Framework クラス ライブラリ リファレンス > CultureAndRegionInfoBuilder.Unregister メソッドの意味・解説 

CultureAndRegionInfoBuilder.Unregister メソッド

メモ : このメソッドは、.NET Framework version 2.0新しく追加されたものです。

ローカル コンピュータからカスタム カルチャを作成します

名前空間: System.Globalization
アセンブリ: sysglobl (sysglobl.dll 内)
構文構文

Public Shared Sub Unregister
 ( _
    cultureName As String _
)
Dim cultureName As String

CultureAndRegionInfoBuilder.Unregister(cultureName)
public static void Unregister
 (
    string cultureName
)
public:
static void Unregister (
    String^ cultureName
)
public static void Unregister
 (
    String cultureName
)
public static function Unregister
 (
    cultureName : String
)

パラメータ

cultureName

カスタム カルチャの名前。

例外例外
例外種類条件

InvalidOperationException

cultureName は、依存カルチャの親カルチャまたはコンソール フォールバック ユーザー インターフェイス カルチャです。

UnauthorizedAccessException

管理者特権がありません。

ArgumentException

cultureName指定されているカルチャが見つかりません。

解説解説
使用例使用例

Unregister メソッドコード例次に示します

' This example demonstrates the System.Globalization.Culture-
' AndRegionInfoBuilder Unregister method.
' Compile this example with a reference to sysglobl.dll.
'
'   Notes:
'   This example deletes the custom culture x-en-US-sample.nlp 
'   file, but not the %winnt%\Globalization directory that contains
 the file.
'

Imports System
Imports System.Globalization

Class Sample
    Public Shared Sub Main()
 
        Try
            Console.Clear()
            Console.WriteLine("Unregister the ""x-en-US-sample""
 " & _
                               "custom culture if it already exists...")
            CultureAndRegionInfoBuilder.Unregister("x-en-US-sample")
            Console.WriteLine("The custom culture was unregistered
 successfully.")
        Catch e As Exception
            Console.WriteLine("Error while unregistering...")
            Console.WriteLine(e)
        End Try
    
    End Sub 'Main
End Class 'Sample
'
'This code example produces the following results:
'
'Unregister the "x-en-US-sample" custom culture if it already
 exists...
'The custom culture was unregistered successfully.
'
// This example demonstrates the System.Globalization.Culture-
// AndRegionInfoBuilder Unregister method.
// Compile this example with a reference to sysglobl.dll.

/*
   Notes:
   This example deletes the custom culture x-en-US-sample.nlp 
   file, but not the %winnt%\Globalization directory that contains the file.
*/

using System;
using System.Globalization;

class Sample 
{
    public static void Main()
 
    {
    try 
        {
        Console.Clear();
        Console.WriteLine("Unregister the \"x-en-US-sample\" "
 +
                          "custom culture if it already exists...");
        CultureAndRegionInfoBuilder.Unregister("x-en-US-sample");
        Console.WriteLine("The custom culture was unregistered successfully.");
        }
    catch (Exception e)
        {
        Console.WriteLine("Error while unregistering...");
        Console.WriteLine(e);
        }
    }
}
/*
This code example produces the following results:

Unregister the "x-en-US-sample" custom culture if it
 already exists...
The custom culture was unregistered successfully.

*/
.NET Framework のセキュリティ.NET Frameworkセキュリティ
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
CultureAndRegionInfoBuilder クラス
CultureAndRegionInfoBuilder メンバ
System.Globalization 名前空間



英和和英テキスト翻訳>> Weblio翻訳
英語⇒日本語日本語⇒英語
  

辞書ショートカット

すべての辞書の索引

CultureAndRegionInfoBuilder.Unregister メソッドのお隣キーワード
検索ランキング

   

英語⇒日本語
日本語⇒英語
   



CultureAndRegionInfoBuilder.Unregister メソッドのページの著作権
Weblio 辞書 情報提供元は 参加元一覧 にて確認できます。

   
日本マイクロソフト株式会社日本マイクロソフト株式会社
© 2024 Microsoft.All rights reserved.

©2024 GRAS Group, Inc.RSS