共用方式為


DeployedDac.DeployedDate 屬性

Gets the time and date when the DAC package was deployed on the instance of SQL Server.

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

語法

'宣告
<SfcPropertyAttribute(SfcPropertyFlags.Data)> _
Public ReadOnly Property DeployedDate As DateTime 
    Get
'用途
Dim instance As DeployedDac 
Dim value As DateTime 

value = instance.DeployedDate
[SfcPropertyAttribute(SfcPropertyFlags.Data)]
public DateTime DeployedDate { get; }
[SfcPropertyAttribute(SfcPropertyFlags::Data)]
public:
property DateTime DeployedDate {
    DateTime get ();
}
[<SfcPropertyAttribute(SfcPropertyFlags.Data)>]
member DeployedDate : DateTime
function get DeployedDate () : DateTime

屬性值

型別:System.DateTime
A DateTime value that specifies the cache directory where temporary files can be stored during deployment onto the instance of SQL Server.

範例

VC#

System.Console.WriteLine(deployedDac.DeployedDate);

VB

System.Console.WriteLine(deployedDac.DeployedDate)

PowerShell

Write-Host $deployedDac.DeployedDate

請參閱

參考

DeployedDac 類別

Microsoft.SqlServer.Management.Utility 命名空間