Backup.BackupSetDescription Backup.BackupSetDescription Backup.BackupSetDescription Property

정의

특정 백업 세트에 대한 텍스트 설명을 가져오거나 설정합니다. Gets or sets a textual description for a particular backup set.

public:
 property System::String ^ BackupSetDescription { System::String ^ get(); void set(System::String ^ value); };
public string BackupSetDescription { get; set; }
Public Property BackupSetDescription As String
속성 값

A String 백업 세트에 대 한 텍스트 설명을 포함 하는 값입니다. A String value that contains a textual description of the backup set. 기본적으로 이 값은 빈 문자열입니다. By default, the value is an empty string.

예제

VBVB

'Connect to the local, default instance of SQL Server.  
Dim srv As Server  
srv = New Server  
'Reference the AdventureWorks2012 database.  
Dim db As Database  
db = srv.Databases("AdventureWorks2012")  
'Define a Backup object variable.   
Dim bk As New Backup  
'Specify the description of the database to be backed up.  
bk.BackupSetDescription = "Full backup of AdventureWorks2012"  
bk.Database = "AdventureWorks2012"  

PowerShellPowerShell

$srv = new-Object Microsoft.SqlServer.Management.Smo.Server("(local)")  
$db = New-Object Microsoft.SqlServer.Management.Smo.Database  
$db = $srv.Databases.Item("AdventureWorks2012")  
$bk = new-object Microsoft.SqlServer.Management.Smo.Backup  
$bk.BackupSetDescription = "Full backup of AdventureWorks2012"  
$bk.Database = "AdventureWorks2012"  

설명

BackupSetDescription 속성 값은 255 자로 제한 됩니다.The BackupSetDescription property value is limited to 255 characters.

적용 대상