다음을 통해 공유


SubscriptionEnumeration Constructor (NSApplication, String, String)

Creates and initializes an object of the SubscriptionEnumeration class. The set of subscriptions returned is all subscriptions associated with a single subscriber, application, and subscription class.

네임스페이스: Microsoft.SqlServer.NotificationServices
어셈블리: Microsoft.SqlServer.NotificationServices (in microsoft.sqlserver.notificationservices.dll)

구문

‘선언
Public Sub New ( _
    nsApplication As NSApplication, _
    subscriptionClassName As String, _
    subscriberId As String _
)
public SubscriptionEnumeration (
    NSApplication nsApplication,
    string subscriptionClassName,
    string subscriberId
)
public:
SubscriptionEnumeration (
    NSApplication^ nsApplication, 
    String^ subscriptionClassName, 
    String^ subscriberId
)
public SubscriptionEnumeration (
    NSApplication nsApplication, 
    String subscriptionClassName, 
    String subscriberId
)
public function SubscriptionEnumeration (
    nsApplication : NSApplication, 
    subscriptionClassName : String, 
    subscriberId : String
)

매개 변수

  • nsApplication
    An NSApplication representing the Notification Services application that contains the collection of subscriptions.
  • subscriptionClassName
    A String containing the name of the subscription class.
  • subscriberId
    A String containing the subscriber ID.

The following examples show how to create and initialize a SubscriptionEnumeration object in managed code:

Dim instanceName As String = "MyInstanceName"
Dim applicationName As String = "MyApplicationName"
Dim subscriptionClassName As String = "MySubscriptionClassName"
Dim subscriberId As String = "MySubscriberID"

'Create an NSInstance object.
Dim myInstance As New NSInstance(instanceName)

'Create an NSApplication object.
Dim myApplication As New NSApplication(myInstance, applicationName)

'Create a SubscriptionEnumeration object.
Dim mySubscriptionEnumeration As _
    New SubscriptionEnumeration(myApplication, _
    subscriptionClassName, subscriberId)
string instanceName = "MyInstanceName";
string applicationName = "MyApplicationName";
string subscriptionClassName = "MySubscriptionClassName";
string subscriberId = "MySubscriberID";

//Create an NSInstance object.
NSInstance myInstance = new NSInstance(instanceName);

//Create an NSApplication object.
NSApplication myApplication = 
    new NSApplication(myInstance, applicationName);

//Create a SubscriptionEnumeration object.
SubscriptionEnumeration mySubscriptionEnumeration = 
    new SubscriptionEnumeration(myApplication, 
    subscriptionClassName, subscriberId);

플랫폼

개발 플랫폼

지원되는 플랫폼 목록은 SQL Server 2005 설치를 위한 하드웨어 및 소프트웨어 요구 사항을 참조하십시오.

대상 플랫폼

지원되는 플랫폼 목록은 SQL Server 2005 설치를 위한 하드웨어 및 소프트웨어 요구 사항을 참조하십시오.

참고 항목

참조

SubscriptionEnumeration Class
SubscriptionEnumeration Members
Microsoft.SqlServer.NotificationServices Namespace