DataFileCollection.Item[String] DataFileCollection.Item[String] DataFileCollection.Item[String] Property

Definition

Overloads

Item[Int32] Item[Int32] Item[Int32]

Gets a DataFile object in the collection by index number.

Item[String] Item[String] Item[String]

Gets a DataFile object in the collection by name.

Item[Int32] Item[Int32] Item[Int32]

Gets a DataFile object in the collection by index number.

public:
 property Microsoft::SqlServer::Management::Smo::DataFile ^ default[int] { Microsoft::SqlServer::Management::Smo::DataFile ^ get(int index); };
public Microsoft.SqlServer.Management.Smo.DataFile this[int index] { get; }
Default Public ReadOnly Property Item(index As Integer) As DataFile
Parameters
index
Int32 Int32 Int32

An Int32 value that specifies the position of the DataFile object in the DataFileCollection collection.

Property Value

A DataFile object value that represents the database file.

Examples

Using Collections

Item[String] Item[String] Item[String]

Gets a DataFile object in the collection by name.

public:
 property Microsoft::SqlServer::Management::Smo::DataFile ^ default[System::String ^] { Microsoft::SqlServer::Management::Smo::DataFile ^ get(System::String ^ name); };
public Microsoft.SqlServer.Management.Smo.DataFile this[string name] { get; }
Default Public ReadOnly Property Item(name As String) As DataFile
Parameters
name
String String String

A String value that specifies the name of the DataFile object in the DataFileCollection collection.

Property Value

A DataFile object value that represents the database file.

Examples

Using Collections

Applies to