Bagikan melalui


UIConnectionInfo.ServerName Property

This API supports the SQL Server 2012 infrastructure and is not intended to be used directly from your code.

Do not reference this member directly in your code. It supports the SQL Server infrastructure. Gets or sets a String value that specifies the name of the instance of the Database Engine for the connection.

Namespace:  Microsoft.SqlServer.Management.Smo.RegSvrEnum
Assembly:  Microsoft.SqlServer.RegSvrEnum (in Microsoft.SqlServer.RegSvrEnum.dll)

Syntax

'Declaration
Public Property ServerName As String 
    Get 
    Set
'Usage
Dim instance As UIConnectionInfo 
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)

Property Value

Type: System.String
A String value that specifies the name of the instance of the Database Engine for the connection.

See Also

Reference

UIConnectionInfo Class

Microsoft.SqlServer.Management.Smo.RegSvrEnum Namespace