Méthode IDTSApplication100.FolderExistsOnDtsServer
Cette API prend en charge l'infrastructure SQL Server 2012 et n'est pas destinée à être utilisée directement à partir de votre code.
Returns a Boolean that indicates whether the specified folder already exists on the file system.
Espace de noms : Microsoft.SqlServer.Dts.Runtime.Wrapper
Assembly : Microsoft.SqlServer.DTSRuntimeWrap (en Microsoft.SqlServer.DTSRuntimeWrap.dll)
Syntaxe
'Déclaration
Function FolderExistsOnDtsServer ( _
bstrFolderName As String, _
bstrServerName As String _
) As Boolean
'Utilisation
Dim instance As IDTSApplication100
Dim bstrFolderName As String
Dim bstrServerName As String
Dim returnValue As Boolean
returnValue = instance.FolderExistsOnDtsServer(bstrFolderName, _
bstrServerName)
bool FolderExistsOnDtsServer(
string bstrFolderName,
string bstrServerName
)
bool FolderExistsOnDtsServer(
[InAttribute] String^ bstrFolderName,
[InAttribute] String^ bstrServerName
)
abstract FolderExistsOnDtsServer :
bstrFolderName:string *
bstrServerName:string -> bool
function FolderExistsOnDtsServer(
bstrFolderName : String,
bstrServerName : String
) : boolean
Paramètres
- bstrFolderName
Type : System.String
The name of the folder you are looking for. For example, to see if a folder name myFolder exists under the File System folder, use the escaped string, @"\\File System\\myFolder".
- bstrServerName
Type : System.String
The name of the server to search for the folder.
Valeur de retour
Type : System.Boolean
true if the folder specified exists on the server; false if the folder does not exist.