< Back
Get-CUEnum
Post
NAME Get-CUEnum
SYNOPSIS
This function returns enums existing in a document.
SYNTAX
Get-CUEnum [[-Path] <String[]>] [<CommonParameters>]
DESCRIPTION
Returns a custom type [ClassEnum]
PARAMETERS
-Path <String[]>
Required? false
Position? 1
Default value (throw "Please provide a path")
Accept pipeline input? true (ByValue)
Accept wildcard characters? false
<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer, PipelineVariable, and OutVariable. For more information, see
about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).
INPUTS
String
OUTPUTS
Classenum
NOTES
Author: St????????phane van Gulick
Version: 0.2.0
-------------------------- EXAMPLE 1 --------------------------
PS C:\\>Get-CuEnum -Path C:\\plop\\enum.ps1
Returns:
Name Member
---- ------
woop {Absent, Present}
RELATED LINKS
https://github.com/Stephanevg/PowerShellClassUtils
SYNOPSIS
This function returns enums existing in a document.
SYNTAX
Get-CUEnum [[-Path] <String[]>] [<CommonParameters>]
DESCRIPTION
Returns a custom type [ClassEnum]
PARAMETERS
-Path <String[]>
Required? false
Position? 1
Default value (throw "Please provide a path")
Accept pipeline input? true (ByValue)
Accept wildcard characters? false
<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer, PipelineVariable, and OutVariable. For more information, see
about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).
INPUTS
String
OUTPUTS
Classenum
NOTES
Author: St????????phane van Gulick
Version: 0.2.0
-------------------------- EXAMPLE 1 --------------------------
PS C:\\>Get-CuEnum -Path C:\\plop\\enum.ps1
Returns:
Name Member
---- ------
woop {Absent, Present}
RELATED LINKS
https://github.com/Stephanevg/PowerShellClassUtils