Scripts/DSC2/Mod4/ClassStructureSimple.ps1
# From release notes enum Ensure { Absent Present } [DscResource()] class FileResource { [DscProperty(Key)] [string]$Path [DscProperty(Mandatory)] [Ensure] $Ensure [DscProperty(Mandatory)] [string] $SourcePath [DscProperty(NotConfigurable)] [Nullable[datetime]] $CreationTime [void] Set() { } [bool] Test() { } [FileResource] Get() { } } |