Subscription.SubscriberId Property

Gets or sets the subscriber ID for this subscription.

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

구문

‘선언
Public Property SubscriberId As String
public string SubscriberId { get; set; }
public:
virtual property String^ SubscriberId {
    String^ get () sealed;
    void set (String^ value) sealed;
}
/** @property */
public final String get_SubscriberId ()

/** @property */
public final void set_SubscriberId (String value)
public final function get SubscriberId () : String

public final function set SubscriberId (value : String)

속성 값

A String containing the subscriber ID for this subscription.

주의

The subscriber ID identifies the subscriber with which this subscription is associated.

' Create the NSInstance object.
Dim testInstance As New NSInstance("Tutorial")
 
' Create the NSApplication object.
Dim testApplication As New NSApplication(testInstance, "Weather")
 
' Create the Subscription object.
Dim testSubscription As _
    New Subscription(testApplication, "WeatherCity")
 
 
' Set the properties that describe the subscription record.
testSubscription.Enabled = True
testSubscription.SubscriberId = "TestUser1"
 
' Set the subscription data fields (as defined in the ADF),
' using the indexer to set fields by field name.
testSubscription("DeviceName") = "Work e-mail"
testSubscription("SubscriberLocale") = "en-US"
testSubscription("City") = "Shoreline"
 
' Add the subscription to the database.
testSubscription.Add()
// Create the NSInstance object.
NSInstance testInstance = new NSInstance("Tutorial");

// Create the NSApplication object.
NSApplication testApplication =
    new NSApplication(testInstance, "Weather");

// Create the Subscription object.
Subscription testSubscription =
    new Subscription(testApplication, "WeatherCity");


// Set the properties that describe the subscription record.
testSubscription.Enabled = true;
testSubscription.SubscriberId = "TestUser1";

// Set the subscription data fields (as defined in the ADF),
// using the indexer to set fields by field name.
testSubscription["DeviceName"] = "Work e-mail";
testSubscription["SubscriberLocale"] = "en-US";
testSubscription["City"] = "Shoreline";

// Add the subscription to the database.
testSubscription.Add();

스레드 보안

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.

플랫폼

개발 플랫폼

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

대상 플랫폼

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

참고 항목

참조

Subscription Class
Subscription Members
Microsoft.SqlServer.NotificationServices Namespace