Freigeben über


NetName-Eigenschaft

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
<DisplayDescriptionKeyAttribute("Server_NetNameDesc")> _
<DisplayNameKeyAttribute("Server_NetNameName")> _
ReadOnly Property NetName As String
    Get
'Usage
Dim instance As IServerInformation
Dim value As String

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

Eigenschaftswert

Typ: System. . :: . .String
String