Partager via


Propriété DataFile.FileName

Gets or sets the data file name.

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

Syntaxe

'Déclaration
<SfcPropertyAttribute(SfcPropertyFlags.None Or SfcPropertyFlags.ReadOnlyAfterCreation Or SfcPropertyFlags.Standalone)> _
Public Property FileName As String 
    Get 
    Set
'Utilisation
Dim instance As DataFile 
Dim value As String 

value = instance.FileName

instance.FileName = value
[SfcPropertyAttribute(SfcPropertyFlags.None|SfcPropertyFlags.ReadOnlyAfterCreation|SfcPropertyFlags.Standalone)]
public string FileName { get; set; }
[SfcPropertyAttribute(SfcPropertyFlags::None|SfcPropertyFlags::ReadOnlyAfterCreation|SfcPropertyFlags::Standalone)]
public:
property String^ FileName {
    String^ get ();
    void set (String^ value);
}
[<SfcPropertyAttribute(SfcPropertyFlags.None|SfcPropertyFlags.ReadOnlyAfterCreation|SfcPropertyFlags.Standalone)>]
member FileName : string with get, set
function get FileName () : String 
function set FileName (value : String)

Valeur de propriété

Type : System.String
A String value that specifies the name of the data file.

Exemples

Utilisation de fichiers ou de groupes de fichiers pour stocker des données

Voir aussi

Référence

DataFile Classe

Espace de noms Microsoft.SqlServer.Management.Smo

Autres ressources

Architecture des fichiers et des groupes de fichiers

CREATE DATABASE (Transact-SQL)