< Back

ConvertTo-UrlParameters

Thu Jan 16, 2020 9:56 am

NAME ConvertTo-UrlParameters



SYNOPSIS

Converts a custom object to correctly encoded url parameters





SYNTAX

ConvertTo-UrlParameters [-Data] <PSObject> [-StartWithQuestionmark] [<CommonParameters>]





DESCRIPTION

When I need a lot of url parameters this function helps me

with encoding and concatenating them using ? and &.





PARAMETERS

-Data <PSObject>



Required? true

Position? 1

Default value

Accept pipeline input? true (ByValue)

Accept wildcard characters? false



-StartWithQuestionmark [<SwitchParameter>]



Required? false

Position? named

Default value False

Accept pipeline input? false

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



OUTPUTS



-------------------------- EXAMPLE 1 --------------------------



PS C:\\>$urlExtension = ConvertTo-UrlParameters $data















RELATED LINKS