Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
359 views
in Technique[技术] by (71.8m points)

powershell - Is the syntax of setting function alias by using function parameters attribute in the document?

When I read this article, I found that,alias of a function can be set directly in its attribute.

So I also want to know if there are other attributes that can be added like this.

But I have searched a lot of materials, but I didn't find it. I don't think this feature is mentioned in the help document.

I only found that the help document mentioned that you can add attributes to the function / cmdlet parameters, but not the function itself.

Alias Attribute Declaration - PowerShell | Microsoft Docs

about_Functions_Advanced_Parameters - PowerShell | Microsoft Docs

Is this feature mentioned in the help document? If so, where is it?

question from:https://stackoverflow.com/questions/65838889/is-the-syntax-of-setting-function-alias-by-using-function-parameters-attribute-i

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...