OutputTypeAttribute Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
OutputTypeAttribute is used to specify the type of objects output by a cmdlet or script.
public ref class OutputTypeAttribute sealed : System::Management::Automation::Internal::CmdletMetadataAttribute
[System.AttributeUsage(System.AttributeTargets.Class, AllowMultiple=true)]
public sealed class OutputTypeAttribute : System.Management.Automation.Internal.CmdletMetadataAttribute
[<System.AttributeUsage(System.AttributeTargets.Class, AllowMultiple=true)>]
type OutputTypeAttribute = class
inherit CmdletMetadataAttribute
Public NotInheritable Class OutputTypeAttribute
Inherits CmdletMetadataAttribute
- Inheritance
- Attributes
Constructors
OutputTypeAttribute(String[]) |
Construct the attribute from an array of names of types. |
OutputTypeAttribute(Type[]) |
Construct the attribute from an array of System.Type |
Properties
ParameterSetName |
The list of parameter sets this OutputType specifies. |
ProviderCmdlet |
Attributes implemented by a provider can use: [OutputType(ProviderCmdlet='cmdlet', typeof(...))] To specify the provider specific objects returned for a given cmdlet. |
Type |
The types specified by the attribute. |