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
Spolupracujte s námi na GitHubu
Zdroj tohoto obsahu najdete na GitHubu, kde můžete také vytvářet a kontrolovat problémy a žádosti o přijetí změn. Další informace najdete v našem průvodci pro přispěvatele.
Váš názor
https://aka.ms/ContentUserFeedback.
Připravujeme: V průběhu roku 2024 budeme postupně vyřazovat problémy z GitHub coby mechanismus zpětné vazby pro obsah a nahrazovat ho novým systémem zpětné vazby. Další informace naleznete v tématu:Odeslat a zobrazit názory pro