共用方式為


IDatabaseOptions.Name 屬性

Gets the name of the database.

命名空間:  Microsoft.SqlServer.Management.Smo
組件:  Microsoft.SqlServer.Smo (在 Microsoft.SqlServer.Smo.dll 中)

語法

'宣告
<DisplayDescriptionKeyAttribute("NamedSmoObject_NameDesc")> _
<DisplayNameKeyAttribute("NamedSmoObject_NameName")> _
ReadOnly Property Name As String 
    Get
'用途
Dim instance As IDatabaseOptions 
Dim value As String 

value = instance.Name
[DisplayDescriptionKeyAttribute("NamedSmoObject_NameDesc")]
[DisplayNameKeyAttribute("NamedSmoObject_NameName")]
string Name { get; }
[DisplayDescriptionKeyAttribute(L"NamedSmoObject_NameDesc")]
[DisplayNameKeyAttribute(L"NamedSmoObject_NameName")]
property String^ Name {
    String^ get ();
}
[<DisplayDescriptionKeyAttribute("NamedSmoObject_NameDesc")>]
[<DisplayNameKeyAttribute("NamedSmoObject_NameName")>]
abstract Name : string
function get Name () : String

屬性值

型別:System.String
A String value containing the database name.

請參閱

參考

IDatabaseOptions 介面

Microsoft.SqlServer.Management.Smo 命名空間