更新:2007 年 11 月
停止在前一個 Start 呼叫中指定之連接的接聽程式。
命名空間:
System.Data.SqlClient 組件:
System.Data (在 System.Data.dll 中)
<HostProtectionAttribute(SecurityAction.LinkDemand, ExternalThreading := True)> _
Public Shared Function Stop ( _
connectionString As String _
) As Boolean
Dim connectionString As String
Dim returnValue As Boolean
returnValue = SqlDependency.Stop(connectionString)
[HostProtectionAttribute(SecurityAction.LinkDemand, ExternalThreading = true)]
public static bool Stop(
string connectionString
)
[HostProtectionAttribute(SecurityAction::LinkDemand, ExternalThreading = true)]
public:
static bool Stop(
String^ connectionString
)
/** @attribute HostProtectionAttribute(SecurityAction.LinkDemand, ExternalThreading = true) */
public static boolean Stop(
String connectionString
)
public static function Stop(
connectionString : String
) : boolean
對每個 Start 呼叫,都必須呼叫 Stop 方法。特定接聽程式接收相同數目的 Stop 要求和 Start 要求時,它才會完全關閉。
Windows Vista, Windows XP SP2, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP Starter Edition, Windows Server 2003, Windows Server 2000 SP4, Windows Millennium Edition, Windows 98
.NET Framework 和 .NET Compact Framework 並不支援各種平台的所有版本。如需支援平台版本的相關資訊,請參閱 .NET Framework 系統需求。
.NET Framework
支援版本:3.5、3.0、2.0
參考
其他資源