This documentation is archived and is not being maintained.

Application.FolderExistsOnDtsServer Method

Returns a Boolean that indicates whether the specified folder already exists on the file system.

Namespace: Microsoft.SqlServer.Dts.Runtime
Assembly: Microsoft.SqlServer.ManagedDTS (in microsoft.sqlserver.manageddts.dll)

public:
bool FolderExistsOnDtsServer (
	String^ sFolderName, 
	String^ sServerName
)
public boolean FolderExistsOnDtsServer (
	String sFolderName, 
	String sServerName
)
public function FolderExistsOnDtsServer (
	sFolderName : String, 
	sServerName : String
) : boolean

Parameters

sFolderName

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".

sServerName

The name of the server to search for the package.

Return Value

true if the folder specified exists on the server; false if the folder does not exist.

The following code example queries the File System to determine whether a folder that was created previously, named myFolder, exists.

No code example is currently available or this language may not be supported.

Sample Output:

Folder exists? True

Any public static (Shared in Microsoft Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Development Platforms

For a list of the supported platforms, see Hardware and Software Requirements for Installing SQL Server 2005.

Target Platforms

Show: