Instance.UnregisterLocal Method ()

Unregisters the instance of Notification Services on the local computer.

Пространство имен: Microsoft.SqlServer.Management.Nmo
Сборка: Microsoft.SqlServer.Smo (in microsoft.sqlserver.smo.dll)

Синтаксис

'Декларация
Public Sub UnregisterLocal
public void UnregisterLocal ()
public:
void UnregisterLocal ()
public void UnregisterLocal ()
public function UnregisterLocal ()

Замечания

Unregistering an instance of Notification Services removes information about the instance from the registry, removes instance and application performance counters, and uninstalls the Windows service, if one exists.

You can only unregister instances on the local computer.

Пример

The following examples show how to disable, unregister, and drop an instance of Notification Services:

// First disable the instance.
Console.WriteLine("Disabling instance...");
inst.Disable();

// Then unregister the instance.
Console.WriteLine("Unregistering instance...");
inst.UnregisterLocal();

// And then delete the instance.
Console.WriteLine("Deleting instance...");
inst.Drop();

Console.WriteLine("Done.");
' First disable the instance.
Console.WriteLine("Disabling instance...")
inst.Disable()

' Then unregister the instance.
Console.WriteLine("Unregistering instance...")
inst.UnregisterLocal()

' And then delete the instance.
Console.WriteLine("Deleting instance...")
inst.Drop()

Console.WriteLine("Done.")

Синхронизация потоков

Any public static (Shared in Microsoft Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Платформы

Платформы разработки

Список поддерживаемых платформ см. в разделе Hardware and Software Requirements for Installing SQL Server 2005.

Целевые платформы

Список поддерживаемых платформ см. в разделе Hardware and Software Requirements for Installing SQL Server 2005.

См. также

Справочник

Instance Class
Instance Members
Microsoft.SqlServer.Management.Nmo Namespace

Другие ресурсы

Как отменить регистрацию экземпляра служб Notification Services (среда SQL Server Management Studio)
Команда nscontrol unregister