共用方式為


NetName 屬性

Gets the network name for an instance of SQL Server.

命名空間:  Microsoft.SqlServer.Management.Smo
組件:  Microsoft.SqlServer.Smo (在 Microsoft.SqlServer.Smo.dll 中)

語法

'宣告
<DisplayDescriptionKeyAttribute("Server_NetNameDesc")> _
<DisplayNameKeyAttribute("Server_NetNameName")> _
ReadOnly Property NetName As String
    Get
'用途
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

屬性值

型別:System. . :: . .String
String