Aracılığıyla paylaş


DataFile.Parent Property

Gets or sets the FileGroup object that is the parent of the DataFile object.

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

Syntax

'Bildirim
<SfcObjectAttribute(SfcObjectRelationship.ParentObject)> _
Public Property Parent As FileGroup
    Get
    Set
'Kullanım
Dim instance As DataFile
Dim value As FileGroup

value = instance.Parent

instance.Parent = value
[SfcObjectAttribute(SfcObjectRelationship.ParentObject)]
public FileGroup Parent { get; set; }
[SfcObjectAttribute(SfcObjectRelationship::ParentObject)]
public:
property FileGroup^ Parent {
    FileGroup^ get ();
    void set (FileGroup^ value);
}
[<SfcObjectAttribute(SfcObjectRelationship.ParentObject)>]
member Parent : FileGroup with get, set
function get Parent () : FileGroup
function set Parent (value : FileGroup)

Property Value

Type: Microsoft.SqlServer.Management.Smo.FileGroup
A FileGroup object value that specifies the parent of the DataFile object.

Examples

Using Filegroups and Files to Store Data

See Also

Reference

DataFile Class

Microsoft.SqlServer.Management.Smo Namespace

Other Resources

Files and Filegroups Architecture

CREATE DATABASE (Transact-SQL)