Application.BaseDirectoryPath Property
Gets or sets the base directory path for the application definition file (ADF).
Пространство имен: Microsoft.SqlServer.Management.Nmo
Сборка: Microsoft.SqlServer.Smo (in microsoft.sqlserver.smo.dll)
Синтаксис
'Декларация
Public Property BaseDirectoryPath As String
public string BaseDirectoryPath { get; set; }
public:
property String^ BaseDirectoryPath {
String^ get ();
void set (String^ value);
}
/** @property */
public String get_BaseDirectoryPath ()
/** @property */
public void set_BaseDirectoryPath (String value)
public function get BaseDirectoryPath () : String
public function set BaseDirectoryPath (value : String)
Значение свойства
A String, between 1 and 260 characters in length, specifying the path of the application's root folder.
Замечания
If you use the Application(Instance,String) constructor, the default value is an empty string. If you use the default constructor, you must either provide a path or set the value to an empty string.
If you do not specify a path, you must use the fully-qualified file name for the application definition file (ADF).
Пример
The following example shows how to set the base directory path for an application:
myApplication.BaseDirectoryPath = @"C:\NS\Full";
myApplication.BaseDirectoryPath = "C:\NS\Full"
Синхронизация потоков
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.
Платформы
Платформы разработки
Список поддерживаемых платформ см. в разделе Hardware and Software Requirements for Installing SQL Server 2005.
Целевые платформы
Список поддерживаемых платформ см. в разделе Hardware and Software Requirements for Installing SQL Server 2005.
См. также
Справочник
Application Class
Application Members
Microsoft.SqlServer.Management.Nmo Namespace