다음을 통해 공유


DateCreated 속성

Gets the time and date when the ManagedInstance object was created.

네임스페이스:  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
A DateTime system value that specifies the date and time when the ManagedInstance object was created.

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