共用方式為


IServerSetupFacet.ServiceName 屬性

Gets the service name.

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

語法

'宣告
<DisplayNameKeyAttribute("Server_ServiceNameName")> _
<DisplayDescriptionKeyAttribute("Server_ServiceNameDesc")> _
ReadOnly Property ServiceName As String 
    Get
'用途
Dim instance As IServerSetupFacet 
Dim value As String 

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

屬性值

型別:System.String
A String value that specifies the service name.

範例

設定屬性

請參閱

參考

IServerSetupFacet 介面

Microsoft.SqlServer.Management.Smo 命名空間