Register a custom type from a type definition.
Register a custom type from a type definition.
Register-MLType [-Path] <String> [-Encoding <Encoding>] [-PassThru] [<CommonParameters>]
Register-MLType -Definition <IDictionary> [-PassThru] [<CommonParameters>]
The path of the type definition file.
Type: System.String
Required: True
Position: 0
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
The type definition from which to create the type.
Type: System.Collections.IDictionary
Required: True
Position: named
Default value: None
Accept pipeline input: True (ByValue)
Accept wildcard characters: False
The encoding of the type definition file.
Type: System.Text.Encoding
Required: False
Position: named
Default value: UTF8
Accept pipeline input: False
Accept wildcard characters: False
Return the registered type.
Type: System.Management.Automation.SwitchParameter
Required: False
Position: named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False
This cmdlet supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, WarningVariable, OutBuffer, PipelineVariable, and OutVariable. For more information, see about_CommonParameters.
Type | Description |
---|---|
System.Collections.IDictionary | You can pipe a dictionary with the type definition to this cmdlet. |
Type | Description |
---|---|
System.Type | This cmdlet returns the registered type if -PassThru is used. |