DataFileCollection.ItemById Method (Int32)
Extracts a member from the DataFileCollection collection using a system-defined, unique identifier.
Assembly: Microsoft.SqlServer.Smo (in Microsoft.SqlServer.Smo.dll)
Parameters
- id
-
Type:
System.Int32
An Int32 value that uniquely identifies the DataFile object that is a member of the DataFileCollection collection.
Return Value
Type: Microsoft.SqlServer.Management.Smo.DataFileA DataFile object that has the specified ID value.
Show: