ManagedInstance.DateCreated プロパティ
ManagedInstance オブジェクトが作成された日時を取得します。
名前空間: Microsoft.SqlServer.Management.Utility
アセンブリ: Microsoft.SqlServer.Management.Utility (Microsoft.SqlServer.Management.Utility.dll)
構文
'宣言
<DmfIgnorePropertyAttribute> _
<SfcPropertyAttribute(SfcPropertyFlags.Data)> _
Public ReadOnly Property DateCreated As DateTimeOffset
Get
'使用
Dim instance As ManagedInstance
Dim value As DateTimeOffset
value = instance.DateCreated
[DmfIgnorePropertyAttribute]
[SfcPropertyAttribute(SfcPropertyFlags.Data)]
public DateTimeOffset DateCreated { get; }
[DmfIgnorePropertyAttribute]
[SfcPropertyAttribute(SfcPropertyFlags::Data)]
public:
property DateTimeOffset DateCreated {
DateTimeOffset get ();
}
[<DmfIgnorePropertyAttribute>]
[<SfcPropertyAttribute(SfcPropertyFlags.Data)>]
member DateCreated : DateTimeOffset
function get DateCreated () : DateTimeOffset
プロパティ値
型: System.DateTimeOffset
ManagedInstance オブジェクトが作成された日時を示す DateTime システム値です。
使用例
VC#
ManagedInstance managedInstance;
managedInstance = new ManagedInstance();
System.Console.WriteLine(managedInstance.DateCreated);
VB
Dim managedInstance As ManagedInstance
managedInstance = New ManagedInstance ()
System.Console.WriteLine(managedInstance.DateCreated)
PowerShell
$managedInstance = New-Object Microsoft.SqlServer.Management.Utility.ManagedInstance
Write-Host $managedInstance.DateCreated