OutputType Attribute Declaration
The OutputType
attribute identifies the .NET Framework types returned by a cmdlet, function, or script.
Syntax
[OutputType(params string[] type)]
[OutputType(params Type[] type)]
[OutputType(params string[] type, Named Parameters...)]
[OutputType(params Type[] type, Named Parameters...)]
Parameters
Type (string[]
or Type[]
)
Required. Specifies the types returned by the cmdlet function, or script.
ParameterSetName (string[])
Optional. Specifies the parameter sets that return the types specified in the type
parameter.
providerCmdlet
Optional. Specifies the provider cmdlet that returns the types specified in the type
parameter.
See Also
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈