ServiceName 属性

Gets the service name.

命名空间:  Microsoft.SqlServer.Management.Smo
程序集:  Microsoft.SqlServer.Smo(在 Microsoft.SqlServer.Smo.dll 中)

语法

声明
<DisplayDescriptionKeyAttribute("Server_ServiceNameDesc")> _
<DisplayNameKeyAttribute("Server_ServiceNameName")> _
ReadOnly Property ServiceName As String
    Get
用法
Dim instance As IServerSetupFacet
Dim value As String

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

属性值

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

示例

设置属性