Partager via


DefaultFile propriété

Gets or sets the DefaultFile property for an instance of SQL Server.

Espace de noms :  Microsoft.SqlServer.Management.Smo
Assembly :  Microsoft.SqlServer.Smo (dans Microsoft.SqlServer.Smo.dll)

Syntaxe

'Déclaration
<DisplayDescriptionKeyAttribute("Server_DefaultFileDesc")> _
<DisplayNameKeyAttribute("Server_DefaultFileName")> _
Property DefaultFile As String
    Get
    Set
'Utilisation
Dim instance As IServerSettings
Dim value As String

value = instance.DefaultFile

instance.DefaultFile = value
[DisplayDescriptionKeyAttribute("Server_DefaultFileDesc")]
[DisplayNameKeyAttribute("Server_DefaultFileName")]
string DefaultFile { get; set; }
[DisplayDescriptionKeyAttribute(L"Server_DefaultFileDesc")]
[DisplayNameKeyAttribute(L"Server_DefaultFileName")]
property String^ DefaultFile {
    String^ get ();
    void set (String^ value);
}
[<DisplayDescriptionKeyAttribute("Server_DefaultFileDesc")>]
[<DisplayNameKeyAttribute("Server_DefaultFileName")>]
abstract DefaultFile : string with get, set
function get DefaultFile () : String
function set DefaultFile (value : String)

Valeur de la propriété

Type : System. . :: . .String
String