Поделиться через


InstanceEnumeration Class

Represents the collection of Notification Services instances hosted on the local computer. This class is deprecated in Microsoft SQL Server 2005.

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

Синтаксис

'Декларация
<ComVisibleAttribute(True)> _
<DefaultMemberAttribute("Item")> _
<GuidAttribute("09837B34-25CC-33B1-A566-903019BC040A")> _
<ClassInterfaceAttribute(ClassInterfaceType.None)> _
Public Class InstanceEnumeration
    Implements IInstanceEnumeration, IEnumerable
[ComVisibleAttribute(true)] 
[DefaultMemberAttribute("Item")] 
[GuidAttribute("09837B34-25CC-33B1-A566-903019BC040A")] 
[ClassInterfaceAttribute(ClassInterfaceType.None)] 
public class InstanceEnumeration : IInstanceEnumeration, IEnumerable
[ComVisibleAttribute(true)] 
[DefaultMemberAttribute(L"Item")] 
[GuidAttribute(L"09837B34-25CC-33B1-A566-903019BC040A")] 
[ClassInterfaceAttribute(ClassInterfaceType::None)] 
public ref class InstanceEnumeration : IInstanceEnumeration, IEnumerable
/** @attribute ComVisibleAttribute(true) */ 
/** @attribute DefaultMemberAttribute("Item") */ 
/** @attribute GuidAttribute("09837B34-25CC-33B1-A566-903019BC040A") */ 
/** @attribute ClassInterfaceAttribute(ClassInterfaceType.None) */ 
public class InstanceEnumeration implements IInstanceEnumeration, IEnumerable
ComVisibleAttribute(true) 
DefaultMemberAttribute("Item") 
GuidAttribute("09837B34-25CC-33B1-A566-903019BC040A") 
ClassInterfaceAttribute(ClassInterfaceType.None) 
public class InstanceEnumeration implements IInstanceEnumeration, IEnumerable

Замечания

In Microsoft SQL Server 2005, classes for creating and managing instances and applications are in the Microsoft.SqlServer.Management.Nmo namespace. This class is replaced by the Microsoft.SqlServer.Management.Nmo.NotificationServices.Instances property, which returns an InstanceCollection object. This class is included only for compatibility with earlier versions of Notification Services and may not be supported in a future release.

The InstanceEnumeration class allows an application to iterate through the set of Notification Services instances available on the local computer. It also provides an Item property to return information about a specific Notification Services instance as an NSInstanceDescription object.

This class is used primarily for administrative purposes and for configuring subscription management applications.

Inheritance Hierarchy

System.Object
  Microsoft.SqlServer.NotificationServices.InstanceEnumeration

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

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.

См. также

Справочник

InstanceEnumeration Members
Microsoft.SqlServer.NotificationServices Namespace