IDTSApplication100.FolderExistsOnDtsServer 方法
此 API 支持 SQL Server 2012 基础结构,但不能通过代码直接使用。
Returns a Boolean that indicates whether the specified folder already exists on the file system.
命名空间: Microsoft.SqlServer.Dts.Runtime.Wrapper
程序集: Microsoft.SqlServer.DTSRuntimeWrap(在 Microsoft.SqlServer.DTSRuntimeWrap.dll 中)
语法
声明
Function FolderExistsOnDtsServer ( _
bstrFolderName As String, _
bstrServerName As String _
) As Boolean
用法
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
参数
- bstrFolderName
类型: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
类型:System.String
The name of the server to search for the folder.
返回值
类型:System.Boolean
true if the folder specified exists on the server; false if the folder does not exist.