IServerInformation.NetName Property

Gets the network name for an instance of SQL Server.

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

Syntax

'Declaration
<DisplayNameKeyAttribute("Server_NetNameName")> _
<DisplayDescriptionKeyAttribute("Server_NetNameDesc")> _
ReadOnly Property NetName As String 
    Get
'Usage
Dim instance As IServerInformation 
Dim value As String 

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

Property Value

Type: System.String
The network name for an instance of SQL Server.

See Also

Reference

IServerInformation Interface

Microsoft.SqlServer.Management.Smo Namespace