ApplicationClass.FolderExistsOnSQLServer 方法

定义

指示指定的文件夹在 SQL Server 实例上是否已存在。

public:
 virtual bool FolderExistsOnSQLServer(System::String ^ bstrFolderName, System::String ^ bstrServerName, System::String ^ bstrServerUserName, System::String ^ bstrServerPassword) = Microsoft::SqlServer::Dts::Runtime::Wrapper::IDTSApplication130::FolderExistsOnSQLServer;
public:
 virtual bool FolderExistsOnSQLServer(System::String ^ bstrFolderName, System::String ^ bstrServerName, System::String ^ bstrServerUserName, System::String ^ bstrServerPassword) = Microsoft::SqlServer::Dts::Runtime::Wrapper::IDTSApplication150::FolderExistsOnSQLServer;
[System.Runtime.InteropServices.DispId(22)]
public virtual bool FolderExistsOnSQLServer (string bstrFolderName, string bstrServerName, string bstrServerUserName, string bstrServerPassword);
[<System.Runtime.InteropServices.DispId(22)>]
abstract member FolderExistsOnSQLServer : string * string * string * string -> bool
override this.FolderExistsOnSQLServer : string * string * string * string -> bool
Public Overridable Function FolderExistsOnSQLServer (bstrFolderName As String, bstrServerName As String, bstrServerUserName As String, bstrServerPassword As String) As Boolean

参数

bstrFolderName
String

文件夹的名称。

bstrServerName
String

要搜索该包的 SQL Server 实例的名称。

bstrServerUserName
String

用于对 SQL Server 的实例进行身份验证的用户名。

bstrServerPassword
String

给定 bstrServerUserName 的密码。

返回

如果文件夹存在于SQL Server的指定实例上,则为 true;如果文件夹不存在,则为 false。

实现

属性

适用于