本文整理汇总了VB.NET中System.Globalization.CultureAndRegionInfoBuilder.Unregister方法的典型用法代码示例。如果您正苦于以下问题:VB.NET CultureAndRegionInfoBuilder.Unregister方法的具体用法?VB.NET CultureAndRegionInfoBuilder.Unregister怎么用?VB.NET CultureAndRegionInfoBuilder.Unregister使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类System.Globalization.CultureAndRegionInfoBuilder
的用法示例。
在下文中一共展示了CultureAndRegionInfoBuilder.Unregister方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的VB.NET代码示例。
示例1: Sample
' 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.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
End Class
输出:
Unregister the "x-en-US-sample" custom culture if it already exists... The custom culture was unregistered successfully.