다음을 통해 공유


ServiceName 속성

서버의 서비스 이름을 가져옵니다.

네임스페이스:  Microsoft.SqlServer.Management.Smo
어셈블리:  Microsoft.SqlServer.Smo(Microsoft.SqlServer.Smo.dll)

구문

‘선언
<SfcPropertyAttribute(SfcPropertyFlags.Standalone)> _
Public ReadOnly Property ServiceName As String
    Get
‘사용 방법
Dim instance As Server
Dim value As String

value = instance.ServiceName
[SfcPropertyAttribute(SfcPropertyFlags.Standalone)]
public string ServiceName { get; }
[SfcPropertyAttribute(SfcPropertyFlags::Standalone)]
public:
property String^ ServiceName {
    String^ get ();
}
[<SfcPropertyAttribute(SfcPropertyFlags.Standalone)>]
member ServiceName : string
function get ServiceName () : String

속성 값

유형: System. . :: . .String
서비스 이름을 포함하는 문자열입니다.