CultureAndRegionInfoBuilder::Unregister Method (String^)

 

Deletes a custom culture from the local computer.

Namespace:   System.Globalization
Assembly:  sysglobl (in sysglobl.dll)

public:
static void Unregister(
	String^ cultureName
)

Parameters

cultureName
Type: System::String^

The name of the custom culture to delete.

Exception Condition
InvalidOperationException

cultureName is a parent culture or console fallback user interface culture of a dependent culture.

UnauthorizedAccessException

The user 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.

Win9xFamily

A custom culture cannot be unregistered if it is in use.

The following example demonstrates the Unregister method.

No code example is currently available or this language may not be supported.

.NET Framework
Available since 2.0
Return to top
Show: