Share via


DataFile.FileName-Eigenschaft

Gets or sets the data file name.

Namespace:  Microsoft.SqlServer.Management.Smo
Assembly:  Microsoft.SqlServer.Smo (in Microsoft.SqlServer.Smo.dll)

Syntax

'Declaration
<SfcPropertyAttribute(SfcPropertyFlags.None Or SfcPropertyFlags.ReadOnlyAfterCreation Or SfcPropertyFlags.Standalone)> _
Public Property FileName As String 
    Get 
    Set
'Usage
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)

Eigenschaftswert

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

Beispiele

Verwenden von Dateigruppen und Dateien zur Speicherung von Daten

Siehe auch

Verweis

DataFile Klasse

Microsoft.SqlServer.Management.Smo-Namespace

Andere Ressourcen

Architektur von Dateien und Dateigruppen

CREATE DATABASE (Transact-SQL)