OutputTypeAttribute OutputTypeAttribute OutputTypeAttribute Class


OutputTypeAttribute is used to specify the type of objects output by a cmdlet or script.

[System.AttributeUsage(System.AttributeTargets.Class, AllowMultiple=true)]
public sealed class OutputTypeAttribute : System.Management.Automation.Internal.CmdletMetadataAttribute
type OutputTypeAttribute = class
    inherit CmdletMetadataAttribute
Public NotInheritable Class OutputTypeAttribute
Inherits CmdletMetadataAttribute


OutputTypeAttribute(String[]) OutputTypeAttribute(String[]) OutputTypeAttribute(String[])

Construct the attribute from an array of names of types.

OutputTypeAttribute(Type[]) OutputTypeAttribute(Type[]) OutputTypeAttribute(Type[])

Construct the attribute from an array of System.Type


ParameterSetName ParameterSetName ParameterSetName

The list of parameter sets this OutputType specifies.

ProviderCmdlet ProviderCmdlet ProviderCmdlet

Attributes implemented by a provider can use:

 [OutputType(ProviderCmdlet='cmdlet', typeof(...))]

To specify the provider specific objects returned for a given cmdlet.

Type Type Type

The types specified by the attribute.

Applies to