次の方法で共有


SubscriberDevice.Delete Method

Notification Services データベースからサブスクライバ デバイス レコードを削除します。

名前空間: Microsoft.SqlServer.NotificationServices
アセンブリ: Microsoft.SqlServer.NotificationServices (microsoft.sqlserver.notificationservices.dll 内)

構文

'宣言
Public Sub Delete
public void Delete ()
public:
virtual void Delete () sealed
public final void Delete ()
public final function Delete ()

解説

このメソッドは、システムからサブスクライバ デバイスを削除します。

使用例

Delete メソッドを使用してサブスクライバ デバイスを削除する例を次に示します。

Dim instanceName As String = "Tutorial"

' Create the NSInstance object.
Dim testInstance As NSInstance = _
    New NSInstance(instanceName)

' Create the SubscriberDevice object.
Dim testSubscriberDevice As SubscriberDevice = _
    New SubscriberDevice(testInstance)

' Set the subscriber ID and device name
' so that the correct record is deleted.
testSubscriberDevice.SubscriberId = "TestUser1"
testSubscriberDevice.DeviceName = "Work E-mail"

' Delete the device
testSubscriberDevice.Delete()
string instanceName = "Tutorial";

// Create the NSInstance object.
NSInstance testInstance = new NSInstance(instanceName);

// Create the SubscriberDevice object.
SubscriberDevice testSubscriberDevice =
    new SubscriberDevice(testInstance);

// Set the subscriber ID and device name
// so that the correct record is deleted.
testSubscriberDevice.SubscriberId = "TestUser1";
testSubscriberDevice.DeviceName = "Work E-mail";

// Delete the device
testSubscriberDevice.Delete();

スレッド セーフ

この型の public static (Microsoft Visual Basic では共有 ) メンバは、スレッド セーフです。インスタンス メンバの場合は、スレッド セーフであるとは限りません。

プラットフォーム

開発プラットフォーム

サポートされているプラットフォームの一覧については、「SQL Server 2005 のインストールに必要なハードウェアおよびソフトウェア」を参照してください。

対象プラットフォーム

サポートされているプラットフォームの一覧については、「SQL Server 2005 のインストールに必要なハードウェアおよびソフトウェア」を参照してください。

参照

関連項目

SubscriberDevice Class
SubscriberDevice Members
Microsoft.SqlServer.NotificationServices Namespace