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
GitHub에서 Microsoft와 공동 작업
이 콘텐츠의 원본은 GitHub에서 찾을 수 있으며, 여기서 문제와 끌어오기 요청을 만들고 검토할 수도 있습니다. 자세한 내용은 참여자 가이드를 참조하세요.
PowerShell