Converts an object into a hashtable by copying its public properties.
ConvertTo-AtlassianHashtable [-InputObject] <PSObject> [<CommonParameters>]
Enumerates properties on the provided object and returns a hashtable where each property name becomes a key.
$obj = [PSCustomObject]@{
Key = 'Value'
Count = 2
}
ConvertTo-AtlassianHashtable -InputObject $obj
Returns a hashtable with Key and Count entries.
Object whose properties are copied into a hashtable.
Type: PSObject
Parameter Sets: (All)
Aliases:
Required: True
Position: 1
Default value: None
Accept pipeline input: True (ByValue)
Accept wildcard characters: False
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216).
System.Management.Automation.PSObject
System.Collections.Hashtable