Name 属性
Gets the name of the computer.
命名空间: Microsoft.SqlServer.Management.Utility
程序集: Microsoft.SqlServer.Management.Utility(在 Microsoft.SqlServer.Management.Utility.dll 中)
语法
声明
<SfcPropertyAttribute> _
<SfcKeyAttribute()> _
Public ReadOnly Property Name As String
Get
用法
Dim instance As Computer
Dim value As String
value = instance.Name
[SfcPropertyAttribute]
[SfcKeyAttribute()]
public string Name { get; }
[SfcPropertyAttribute]
[SfcKeyAttribute()]
public:
property String^ Name {
String^ get ();
}
[<SfcPropertyAttribute>]
[<SfcKeyAttribute()>]
member Name : string
function get Name () : String
属性值
类型:System. . :: . .String
A String value that specifies the name of the computer.
示例
VC#
System.Console.WriteLine(computer.Name);
VB
System.Console.WriteLine(computer.Name)
PowerShell
Write-Host $computer.Name