Compartilhar via


Método IDTSApplication100.FolderExistsOnSQLServer

Essa API oferece suporte à infraestrutura do SQL Server 2012 e não se destina a ser usada diretamente no seu código.

Returns a Boolean that indicates whether the specified folder already exists on the instance of SQL Server.

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

Sintaxe

'Declaração
Function FolderExistsOnSQLServer ( _
    bstrFolderName As String, _
    bstrServerName As String, _
    bstrServerUserName As String, _
    bstrServerPassword As String _
) As Boolean
'Uso
Dim instance As IDTSApplication100 
Dim bstrFolderName As String 
Dim bstrServerName As String 
Dim bstrServerUserName As String 
Dim bstrServerPassword As String 
Dim returnValue As Boolean 

returnValue = instance.FolderExistsOnSQLServer(bstrFolderName, _
    bstrServerName, bstrServerUserName, _
    bstrServerPassword)
bool FolderExistsOnSQLServer(
    string bstrFolderName,
    string bstrServerName,
    string bstrServerUserName,
    string bstrServerPassword
)
bool FolderExistsOnSQLServer(
    [InAttribute] String^ bstrFolderName, 
    [InAttribute] String^ bstrServerName, 
    [InAttribute] String^ bstrServerUserName, 
    [InAttribute] String^ bstrServerPassword
)
abstract FolderExistsOnSQLServer : 
        bstrFolderName:string * 
        bstrServerName:string * 
        bstrServerUserName:string * 
        bstrServerPassword:string -> bool
function FolderExistsOnSQLServer(
    bstrFolderName : String, 
    bstrServerName : String, 
    bstrServerUserName : String, 
    bstrServerPassword : String
) : boolean

Parâmetros

  • bstrFolderName
    Tipo: System.String
    The folder you are looking for.
  • bstrServerName
    Tipo: System.String
    The name of the instance of SQL Server to search for the folder.
  • bstrServerUserName
    Tipo: System.String
    The user name to authenticate against the instance of SQL Server.
  • bstrServerPassword
    Tipo: System.String
    The password for the given bstrServerUserName.

Valor de retorno

Tipo: System.Boolean
true if the folder exists on the specified instance of SQL Server; false if the folder does not exist.

Consulte também

Referência

IDTSApplication100 Interface

Namespace Microsoft.SqlServer.Dts.Runtime.Wrapper