Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Gets the time and date when the ManagedInstance object was created.
Namespace: Microsoft.SqlServer.Management.Utility
Assembly: Microsoft.SqlServer.Management.Utility (in Microsoft.SqlServer.Management.Utility.dll)
Syntax
'Declaration
<DmfIgnorePropertyAttribute> _
<SfcPropertyAttribute(SfcPropertyFlags.Data)> _
Public ReadOnly Property DateCreated As DateTimeOffset
Get
'Usage
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
Property Value
Type: System.DateTimeOffset
A DateTime system value that specifies the date and time when the ManagedInstance object was created.
Examples
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