Restore.FileNumber 속성
Gets or sets the index number used to identify the targeted backup set on the backup medium.
네임스페이스: Microsoft.SqlServer.Management.Smo
어셈블리: Microsoft.SqlServer.SmoExtended(Microsoft.SqlServer.SmoExtended.dll)
구문
‘선언
Public Property FileNumber As Integer
Get
Set
‘사용 방법
Dim instance As Restore
Dim value As Integer
value = instance.FileNumber
instance.FileNumber = value
public int FileNumber { get; set; }
public:
property int FileNumber {
int get ();
void set (int value);
}
member FileNumber : int with get, set
function get FileNumber () : int
function set FileNumber (value : int)
속성 값
유형: System.Int32
An Int32 value that specifies the backup set index number.
예
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
참고 항목
참조
Microsoft.SqlServer.Management.Smo 네임스페이스