Aracılığıyla paylaş


BackupRestoreBase.MediaName Property

Gets or sets the name used to identify a particular media set.

Namespace:  Microsoft.SqlServer.Management.Smo
Assembly:  Microsoft.SqlServer.SmoExtended (in Microsoft.SqlServer.SmoExtended.dll)

Syntax

'Bildirim
Public Property MediaName As String
    Get
    Set
'Kullanım
Dim instance As BackupRestoreBase
Dim value As String

value = instance.MediaName

instance.MediaName = value
public string MediaName { get; set; }
public:
property String^ MediaName {
    String^ get ();
    void set (String^ value);
}
member MediaName : string with get, set
function get MediaName () : String
function set MediaName (value : String)

Property Value

Type: System.String
A String system value that specifies the media name. By default, the value is an empty string.

Examples

Backing Up and Restoring Databases and Transaction Logs

See Also

Reference

BackupRestoreBase Class

Microsoft.SqlServer.Management.Smo Namespace

Other Resources

RESTORE (Transact-SQL)

BACKUP (Transact-SQL)