Can I decorate advanced PowerShell functions with my own attributes?

For example:

function TestThis()
{
    [MySpecialCustomAttribute]
    [CmdletBinding()]
    Param(...)
    Process{...}

}
+5
source share
2 answers

Of course you can. See an example here .

-1
source

I do not think so.

+2
source

All Articles