Add-Type

1st Microsoft Example

Add-Type [-TypeDefinition] <String> [-Language <Language>] 
[-ReferencedAssemblies <String[]>] [-CodeDomProvider <CodeDomProvider>] 
[-CompilerParameters <CompilerParameters>] [-OutputAssembly <String>] 
[-OutputType <OutputAssemblyType>] [-PassThru] [-IgnoreWarnings] 
[-Verbose] [-Debug] [-ErrorAction <ActionPreference>] 
[-WarningAction <ActionPreference>] [-ErrorVariable <String>] 
[-WarningVariable <String>] [-OutVariable <String>] 
[-OutBuffer <Int32>]

2nd Microsoft Example

Add-Type [-Name] <String> [-MemberDefinition] <String[]> 
[-Namespace <String>] [-UsingNamespace <String[]>] [-Language <Language>] 
[-ReferencedAssemblies <String[]>] [-CodeDomProvider <CodeDomProvider>] 
[-CompilerParameters <CompilerParameters>] [-OutputAssembly <String>] 
[-OutputType <OutputAssemblyType>] [-PassThru] [-IgnoreWarnings] [-Verbose] 
[-Debug] [-ErrorAction <ActionPreference>] [-WarningAction <ActionPreference>] 
[-ErrorVariable <String>] [-WarningVariable <String>] [-OutVariable <String>] 
[-OutBuffer <Int32>]

3rd Microsoft Example

Add-Type [-Path] <String[]> [-ReferencedAssemblies <String[]>]
[-CompilerParameters <CompilerParameters>] [-OutputAssembly <String>] 
[-OutputType <OutputAssemblyType>] [-PassThru] [-IgnoreWarnings] [-Verbose] 
[-Debug] [-ErrorAction <ActionPreference>] [-WarningAction <ActionPreference>] 
[-ErrorVariable <String>] [-WarningVariable <String>] [-OutVariable <String>] 
[-OutBuffer <Int32>]

4th Microsoft Example

Add-Type -AssemblyName <String[]> [-PassThru] [-IgnoreWarnings] [-Verbose] [-Debug] 
[-ErrorAction <ActionPreference>] [-WarningAction <ActionPreference>] 
[-ErrorVariable <String>] [-WarningVariable <String>] [-OutVariable <String>] 
[-OutBuffer <Int32>]