다음을 통해 공유


Name 속성

Gets the name of the server, which is the physical machine name.

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

구문

‘선언
<SfcPropertyAttribute> _
<SfcKeyAttribute()> _
Public ReadOnly Property Name As String
    Get
‘사용 방법
Dim instance As Server
Dim value As String

value = instance.Name
[SfcPropertyAttribute]
[SfcKeyAttribute()]
public string Name { get; }
[SfcPropertyAttribute]
[SfcKeyAttribute()]
public:
virtual property String^ Name {
    String^ get () sealed;
}
[<SfcPropertyAttribute>]
[<SfcKeyAttribute()>]
abstract Name : string
[<SfcPropertyAttribute>]
[<SfcKeyAttribute()>]
override Name : string
final function get Name () : String

속성 값

형식: System. . :: . .String
A String value that specifies the name of server.

구현

IAlienRootName()()()()

예제

Console.WriteLine(srv.Name)