다음을 통해 공유


ServerName 속성

Gets or sets the name of the instance of SQL Server.

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

구문

‘선언
Public Property ServerName As String
    Get
    Set
‘사용 방법
Dim instance As SqlOlapConnectionInfoBase
Dim value As String

value = instance.ServerName

instance.ServerName = value
public string ServerName { get; set; }
public:
property String^ ServerName {
    String^ get ();
    void set (String^ value);
}
member ServerName : string with get, set
function get ServerName () : String
function set ServerName (value : String)

속성 값

유형: System. . :: . .String
A String value that specifies the name of the instance of SQL Server.