Compartir a través de


Application.ApplicationDefinitionFilePath Property

Gets or sets the path and name of the application definition file (ADF).

Espacio de nombres: Microsoft.SqlServer.Management.Nmo
Ensamblado: Microsoft.SqlServer.Smo (in microsoft.sqlserver.smo.dll)

Sintaxis

'Declaración
Public Property ApplicationDefinitionFilePath As String
public string ApplicationDefinitionFilePath { get; set; }
public:
property String^ ApplicationDefinitionFilePath {
    String^ get ();
    void set (String^ value);
}
/** @property */
public String get_ApplicationDefinitionFilePath ()

/** @property */
public void set_ApplicationDefinitionFilePath (String value)
public function get ApplicationDefinitionFilePath () : String

public function set ApplicationDefinitionFilePath (value : String)

Valor de propiedad

A String, between 1 and 260 characters in length, specifying the path and name of the ADF.

Notas

You can define a Notification Services application using an ADF. This property gets or sets the path and name of that file.

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 and file name or set the value to an empty string.

If the ADF file is in the folder specified by the BaseDirectoryPath value, use only the ADF name, such as StockADF.xml.

If the ADF file is not in the folder specified by BaseDirectoryPath, the ApplicationDefinitionFilePath value can be a relative path from the base directory path, such as ..\..\Datafiles\StockADF.xml, or is a fully qualified path, such as D:\Datafiles\StockADF.xml or \\Server\Share\StockADF.xml.

Ejemplo

The following example shows how to set the application definition file (ADF) path:

myApplication.ApplicationDefinitionFilePath = @"C:\NS";
myApplication.ApplicationDefinitionFilePath = "C:\NS"

Seguridad para subprocesos

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.

Plataformas

Plataformas de desarrollo

Para obtener una lista de las plataformas compatibles, vea Requisitos de hardware y software para instalar SQL Server 2005.

Plataformas de destino

Para obtener una lista de las plataformas compatibles, vea Requisitos de hardware y software para instalar SQL Server 2005.

Vea también

Referencia

Application Class
Application Members
Microsoft.SqlServer.Management.Nmo Namespace

Otros recursos

ApplicationDefinitionFilePath Element (ICF)