ApplicationClass.ExistsOnDtsServer 方法
此 API 支持 SQL Server 2012 基础结构,但不能通过代码直接使用。
Returns a Boolean that indicates whether the specified package already exists on the Integration Services service.
命名空间: Microsoft.SqlServer.Dts.Runtime.Wrapper
程序集: Microsoft.SqlServer.DTSRuntimeWrap(在 Microsoft.SqlServer.DTSRuntimeWrap.dll 中)
语法
声明
Public Overridable Function ExistsOnDtsServer ( _
bstrPackagePath As String, _
bstrServerName As String _
) As Boolean
用法
Dim instance As ApplicationClass
Dim bstrPackagePath As String
Dim bstrServerName As String
Dim returnValue As Boolean
returnValue = instance.ExistsOnDtsServer(bstrPackagePath, _
bstrServerName)
public virtual bool ExistsOnDtsServer(
string bstrPackagePath,
string bstrServerName
)
public:
virtual bool ExistsOnDtsServer(
[InAttribute] String^ bstrPackagePath,
[InAttribute] String^ bstrServerName
)
abstract ExistsOnDtsServer :
bstrPackagePath:string *
bstrServerName:string -> bool
override ExistsOnDtsServer :
bstrPackagePath:string *
bstrServerName:string -> bool
public function ExistsOnDtsServer(
bstrPackagePath : String,
bstrServerName : String
) : boolean
参数
- bstrPackagePath
类型:System.String
The fully qualified path of the package.
- bstrServerName
类型:System.String
The name of the server to search for the package.
返回值
类型:System.Boolean
true if the package specified by bstrPackagePath exists on the server named by bstrServerName; otherwise, false.
实现
IDTSApplication100.ExistsOnDtsServer(String, String)