Share via


ManagedInstance.DateCreated Property

Definition

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

public:
 property DateTimeOffset DateCreated { DateTimeOffset get(); };
[Microsoft.SqlServer.Management.Sdk.Sfc.DmfIgnoreProperty]
[Microsoft.SqlServer.Management.Sdk.Sfc.Metadata.SfcProperty(Microsoft.SqlServer.Management.Sdk.Sfc.Metadata.SfcPropertyFlags.Data)]
public DateTimeOffset DateCreated { get; }
[<Microsoft.SqlServer.Management.Sdk.Sfc.DmfIgnoreProperty>]
[<Microsoft.SqlServer.Management.Sdk.Sfc.Metadata.SfcProperty(Microsoft.SqlServer.Management.Sdk.Sfc.Metadata.SfcPropertyFlags.Data)>]
member this.DateCreated : DateTimeOffset
Public ReadOnly Property DateCreated As DateTimeOffset

Property Value

A DateTime system value that specifies the date and time when the ManagedInstance object was created.

Attributes

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   

Applies to