Share via


ApplicationClass.ExistsOnDtsServer Method

This API supports the SQL Server 2012 infrastructure and is not intended to be used directly from your code.

Returns a Boolean that indicates whether the specified package already exists on the Integration Services service.

Namespace:  Microsoft.SqlServer.Dts.Runtime.Wrapper
Assembly:  Microsoft.SqlServer.DTSRuntimeWrap (in Microsoft.SqlServer.DTSRuntimeWrap.dll)

Syntax

'Declaration
Public Overridable Function ExistsOnDtsServer ( _
    bstrPackagePath As String, _
    bstrServerName As String _
) As Boolean
'Usage
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

Parameters

  • bstrPackagePath
    Type: System.String
    The fully qualified path of the package.
  • bstrServerName
    Type: System.String
    The name of the server to search for the package.

Return Value

Type: System.Boolean
true if the package specified by bstrPackagePath exists on the server named by bstrServerName; otherwise, false.

Implements

IDTSApplication100.ExistsOnDtsServer(String, String)

See Also

Reference

ApplicationClass Class

Microsoft.SqlServer.Dts.Runtime.Wrapper Namespace