共用方式為


DeployedDac.Name 屬性

Gets the name of the deployed DAC.

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

語法

'宣告
<SfcKeyAttribute()> _
<SfcPropertyAttribute> _
Public ReadOnly Property Name As String 
    Get
'用途
Dim instance As DeployedDac 
Dim value As String 

value = instance.Name
[SfcKeyAttribute()]
[SfcPropertyAttribute]
public string Name { get; }
[SfcKeyAttribute()]
[SfcPropertyAttribute]
public:
property String^ Name {
    String^ get ();
}
[<SfcKeyAttribute()>]
[<SfcPropertyAttribute>]
member Name : string
function get Name () : String

屬性值

型別:System.String
A String value that specifies the name of the deployed DAC.

範例

VC#

System.Console.WriteLine(deployedDac.Name);

VB

System.Console.WriteLine(deployedDac.Name)

PowerShell

Write-Host $deployedDac.Name 

請參閱

參考

DeployedDac 類別

Microsoft.SqlServer.Management.Utility 命名空間