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
التعاون معنا على GitHub
يمكن العثور على مصدر هذا المحتوى على GitHub حيث يمكنك أيضاً إضافة مشاكل وطلبات سحب ومراجعتها. للحصول على معلومات إضافية، اطلع على دليل المساهم لدينا.
PowerShell
الملاحظات
https://aka.ms/ContentUserFeedback.
قريبًا: خلال عام 2024، سنتخلص تدريجيًا من GitHub Issues بوصفها آلية إرسال ملاحظات للمحتوى ونستبدلها بنظام ملاحظات جديد. لمزيد من المعلومات، راجعإرسال الملاحظات وعرضها المتعلقة بـ