mirror of
https://github.com/Micke-K/IntuneManagement.git
synced 2026-09-28 19:05:38 +02:00
29 lines
884 B
PowerShell
29 lines
884 B
PowerShell
#ImportOrder 8
|
|
|
|
# CLR-typed row shape for the Intune Assignments DataGrid. Get-IntuneAssignmentRow
|
|
# in Internal/IntuneAssignments.ps1 returns [PSCustomObject]; Avalonia's binder
|
|
# can't traverse those (see [[avalonia-binding-needs-clr-types]]), so the
|
|
# Avalonia tool converts each PSCustomObject into one of these before assigning
|
|
# ItemsSource. Properties mirror what the DataGrid columns + filter + CSV
|
|
# export read.
|
|
|
|
class IntuneAssignmentRowItem
|
|
{
|
|
[string] $Name
|
|
[string] $Type
|
|
[int] $AssignmentCount
|
|
[bool] $HasFilters
|
|
[string] $IncludedString
|
|
[string] $ExcludedString
|
|
[string] $IncludedFilterString
|
|
[string] $ExcludedFilterString
|
|
[string] $Id
|
|
[object] $Object
|
|
[object[]] $Included
|
|
[object[]] $Excluded
|
|
[object[]] $IncludedFilters
|
|
[object[]] $ExcludedFilters
|
|
|
|
IntuneAssignmentRowItem() {}
|
|
}
|