Restore.FileNumber Restore.FileNumber Restore.FileNumber Property

Definition

Gets or sets the index number used to identify the targeted backup set on the backup medium.

public:
 property int FileNumber { int get(); void set(int value); };
public int FileNumber { get; set; }
Public Property FileNumber As Integer
Property Value

An Int32 value that specifies the backup set index number.

Examples

The following code example demonstrates how to set the index number of the backup associated with the restore instance to 1.

VB

Dim rs As Restore  
rs = New Restore  
rs.FileNumber = 1  

PowerShell

$rs = new-object Microsoft.SqlServer.Management.Smo.Restore  
$rs.FileNumber = 1  

Applies to