Update-TypeData

 

SYNOPSIS

Updates the current extended type configuration by reloading the *.types.ps1xml files into memory.

 

SYNTAX

Update-TypeData [[-appendPath] <string[]>] [-prependPath <string[]>] [<CommonParameters>]

 

DETAILED DESCRIPTION

Updates the current extended type configuration by reloading the *.types.ps1xml files into memory. Extended type information is normally loaded when Windows PowerShell requires the type information it contains. The Update-TypeData cmdlet can be used to preload all type information. It is particularly useful when you are developing types and want to load those new types for testing purposes.

 

PARAMETERS

 

-appendPath <string[]>

Specifies the path to optional .ps1xml files which will be included in the list of files loaded. These are processed after the built-in files are loaded.

 

Required?

false

Position?

1

Default value

 

Accept pipeline input?  

true (ByValue, ByPropertyName)

Accept wildcard characters? 

true

 

-prependPath <string[]>

Specifies the path to optional .ps1xml files which will be included in the list of files loaded. However, these files are processed in the order they are specified and before the built-in files are loaded.

 

Required?

false

Position?

named

Default value

 

Accept pipeline input?  

false

Accept wildcard characters? 

true

 

<CommonParameters>

This cmdlet supports the common parameters: -Verbose, -Debug, -ErrorAction, -ErrorVariable, and -OutVariable. For more information, type, "get-help about_commonparameters".

 

INPUT TYPE

Object

 

NOTES

 

For more information, type "Get-Help Update-TypeData -detailed". For technical information, type "Get-Help Update-TypeData -full".

 

When specifying multiple values for a parameter, use commas to separate the values. For example, "<parameter-name> <value1>, <value2>".

 

EXAMPLE 1

 

update-typedata

 

This example updates the extended type configuration from the *.types.ps1xml files.

 

EXAMPLE 2

 

update-typedata -prependpath typesA.types.Ps1xml, typesB.types.Ps1xml

 

This example updates the extended type configuration from the *.types.ps1xml files, processing the typesA and typesB files first.

 

RELATED LINKS

Update-FormatData