CultureAndRegionInfoBuilder::Unregister Method
Deletes a custom culture from the local computer.
Assembly: sysglobl (in sysglobl.dll)
Parameters
- cultureName
- Type: System::String
The name of a custom culture.
| Exception | Condition |
|---|---|
| InvalidOperationException | cultureName is a parent culture or console fallback user interface culture of a dependent culture. |
| UnauthorizedAccessException | Application does not have administrative privileges. |
| ArgumentException | cultureName specifies a culture that is not found. |
The Unregister method does the reverse of the Register method. The Register method stores a custom culture as a file on the local computer in the Globalization subdirectory of the directory returned by the Win32 API GetWindowsDirectory function. The Unregister method deletes the persisted custom culture file from the computer. After the file is deleted, existing instances of the custom culture in computer memory continue to work, but new instances of the custom culture cannot be created.
Windows 95, Windows 98, Windows 98 Second Edition, Windows Millennium Edition Platform Note: A custom culture cannot be unregistered if it is in use.
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.