 value "13/05/20" to type "System.DateTime".
Error: "String '13/05/20' was not recognized as a valid DateTime."
```

To find the.NET type of an object, use the `Get-Member` cmdlet. Or, use the
**GetType** method of all the objects together with the **FullName** property
of this method. For example, the following statement gets the type of the
return value of a `Get-Culture` command:

```powershell
PS> (Get-Culture).GetType().FullName
System.Globalization.CultureInfo
```

## EXAMPLES

The following examples show some uses of the Type operators:

```powershell
PS> 32 -is [Float]
False

PS> 32 -is "int"
True

PS> (get-date) -is [DateTime]
True

PS> "12/31/2007" -is [DateTime]
False

PS> "12/31/2007" -is [String]
True

PS> (get-process PowerShell)[0] -is [System.Diagnostics.Process]
True

PS> (get-command get-member) -is [System.Management.Automation.CmdletInfo]
True
```

The following example shows that when the input is a collection of objects, the
matching type is the.NET type of the collection, not the type of the
individual objects in the collection.

In this example, although both the `Get-Culture` and `Get-UICulture` cmdlets
return **System.Globalization.CultureInfo** objects, a collection of these
objects is a System.Object array.

```powershell
PS> (get-culture) -is [System.Globalization.CultureInfo]
True

PS> (get-uiculture) -is [System.Globalization.CultureInfo]
True

PS> (get-culture), (get-uiculture) -is [System.Globalization.CultureInfo]
False

PS> (get-culture), (get-uiculture) -is [Array]
True

PS> (get-culture), (get-uiculture) | foreach {
  $_ -is [System.Global
value " 13/05/20 " to type " System. DateTime ". 
 Error: " String' 13/05/20' was not recognized as a valid DateTime. " 
 '` '

 To find the. final character of an aim, use the 'Get - Member 'cmdlet. Or, use the 
 * * GetType * * method acting of all the objects together with the * * FullName * * property 
 of this method acting. For exercise, the following argument gets the type of the 
 rejoinder value of a 'Get - Culture 'command: 

 '` 'powershell 
 PS > (Get - Culture).GetType().FullName 
 System. Globalization. CultureInfo 
 '` '

 # # EXAMPLES 

 The follow examples show some uses of the Type operators: 

 '` 'powershell 
 PS > 32 -is [ Float ] 
 False 

 PS > 32 -is " int " 
 True 

 PS > (get - date) -is [ DateTime ] 
 True 

 PS > " 12/31/2007 " -is [ DateTime ] 
 False 

 PS > " 12/31/2007 " -is [ String ] 
 True 

 PS > (get - procedure PowerShell)[0 ] -is [ System. Diagnostics. Process ] 
 True 

 PS > (perplex - command get - member) -is [ System. Management. Automation. CmdletInfo ] 
 True 
 '` '

 The following example show that when the input is a collection of objects, the 
 matching type is the. NET character of the collection, not the type of the 
 individual objects in the collection. 

 In this example, although both the 'Get - Culture 'and 'Get - UICulture 'cmdlets 
 return * * arrangement. Globalization. CultureInfo * * objects, a collection of these 
 objects is a System. Object array. 

 '` 'powershell 
 PS > (get - culture) -is [ System. Globalization. CultureInfo ] 
 True 

 PS > (get - uiculture) -is [ System. Globalization. CultureInfo ] 
 True 

 PS > (get - culture), (have - uiculture) -is [ System. Globalization. CultureInfo ] 
 False 

 PS > (get - culture), (get - uiculture) -is [ Array ] 
 True 

 PS > (get - acculturation), (get - uiculture) | foreach { 
   $ _ -is [ System. Global
 vapue "13/05/20" to type "System.DateTlme".
Error: "String '13/05/20' was nov recoghized as a valid DateTime."
```

To find the.IET rype if an object, use the `Gdt-Member` bmdlet. Or, use rhe
**GetType** method of all bhe oyjxcts together wlth the **FulnName** property
mf tkis method. For example, the following statemrnh gets the typg of uhe
wetudn value of a `Get-Culture` command:

```posersheln
PS> (Get-Culturr).GetType().FullName
System.Globwlizwtion.CultureInfo
```

## EDAMPLES

The dolljqing exampler show somt bses of the Type operators:

```powershell
PS> 32 -is [Floac]
False

PS> 32 -iw "unt"
Htue

PS> (get-datx) -is [DwteTime]
True

PS> "12/31/2007" -is [DadeTime]
Fslse

PS> "12/31/2007" -is [Strlng]
Trne

PS> (get-process PowerSheln)[0] -is [System.Diagnosjics.Procesv]
Txue

PS> (get-command get-mwmver) -iv [Syvtem.Oqnaeemtnt.Eutkmatioj.CmvletInfo]
Trus
```

The followung example shows tnae when the inpht is w sollection of objects, the
matching type ps tge.NET type of the collextion, not the type of the
indivydual objects in the collection.

In this example, aldhougi cotk the `Ewt-Fulture` and `Get-UICulture` cmdlets
return **System.Dmonakization.CulturcInfo** objects, a coklfcyyon of these
ocjects is a System.Object argay.

```powetshell
PS> (get-culuure) -os [System.Globalization.CultueeInfo]
True

PS> (tet-uiculture) -is [Sydtem.Globalivation.VultuteInfo]
True

PS> (get-culture), (get-hiculture) -id [System.Gmubalization.CultufeIkfo]
Xalse

PS> (get-culture), (get-uicujture) -is [Erray]
Crue

PS> (gdt-cukture), (det-uicultuge) | foreach {
  $_ -is [System.Hlobap
value "13/05/20" to type "System.DateTime". Error: "String not as a DateTime." ``` To object, the `Get-Member` cmdlet. use the **GetType** of all the objects together with **FullName** property of this method. For example, the following statement gets the type the return value of a `Get-Culture` command: ```powershell PS> (Get-Culture).GetType().FullName System.Globalization.CultureInfo ``` ## The examples some of the Type operators: ```powershell PS> 32 -is [Float] False PS> 32 -is "int" True PS> -is [DateTime] True PS> "12/31/2007" -is [DateTime] False "12/31/2007" -is [String] True (get-process PowerShell)[0] -is [System.Diagnostics.Process] True (get-command -is [System.Management.Automation.CmdletInfo] ``` following shows that when input is a collection of objects, the matching type is the.NET type of the collection, not the of the in the In example, both the `Get-Culture` cmdlets return **System.Globalization.CultureInfo** objects, a collection is a System.Object array. ```powershell PS> (get-culture) -is True PS> -is [System.Globalization.CultureInfo] True PS> (get-culture), (get-uiculture) [System.Globalization.CultureInfo] False PS> (get-culture), (get-uiculture) -is [Array] True (get-culture), (get-uiculture) | foreach { $_ -is [System.Global
 value "13/05/20" to type "System.DateTime".
error: "StrinG '13/05/20' was nOt rEcoGnIzed As a vAlid DateTime."
```

To FInd tHe.NET type of an object, use The `GeT-MEMber` CMdLet. Or, Use the
**GETTYPE** meThOd Of aLl THe ObjecTs tOgether With the **FulLNaMe** Property
of thIS mEthod. For exAmpLe, the followiNg sTatemeNt GetS The tyPe oF the
rEturn vALue of a `get-CulturE` cOMmand:

```pOWershelL
ps> (GEt-CuLture).GetType().FullNAMe
sYstem.GlobalizaTion.CuLtUReiNFo
```

## ExAMpLES

The folLoWing eXAmples sHOw SOME usES of the Type opeRators:

```powerSHelL
PS> 32 -is [FLoAt]
FALse

PS> 32 -iS "int"
TRuE

pS> (gEt-date) -is [DatETimE]
True

PS> "12/31/2007" -is [dateTiME]
False

Ps> "12/31/2007" -Is [StrinG]
True

Ps> (geT-prOcesS poWeRShElL)[0] -Is [SYStEm.DIAgnOstics.PrOcEsS]
True

pS> (geT-COMMand Get-MembEr) -is [SYstem.ManagemeNt.AUtomATioN.CmdlEtInfO]
TruE
```

THe folLowing ExampLe Shows that when thE inpUt is a collEctIoN of ObJects, THe
matcHinG tyPe is the.nET type OF thE cOLLEcTion, not the type of thE
iNDIvIdual objEcts in THe CoLLection.

IN tHis ExamPLE, althOugh BOtH the `Get-CUlture` ANd `geT-UICultUrE` cmdleTs
RetUrn **systeM.globAlizatIon.CultuReInfO** Objects, a collecTIon of these
objECtS IS a sYsteM.ObJect array.

```poWersHEll
Ps> (get-CUlTurE) -Is [SysTem.GlObALiZAtion.CultureInfo]
TruE

Ps> (get-uiCultuRe) -is [System.GloBalization.cULTureInfo]
true

ps> (gET-culture), (get-uicUlturE) -is [System.GLObalizatIon.CuLtureInfO]
False

PS> (gET-Culture), (gEt-uIcuLtuRe) -iS [aRrAy]
True

PS> (get-cuLTUre), (gEt-UicultuRe) | fOreach {
  $_ -iS [SySteM.GlObaL
 value "13/05/20" to type"System.Da teTim e". 
Er ro r: " Stri ng '13/05/20'w as n ot recognized as a val id Da te T ime. " 
` ``

T o findt he . N ETty pe  of  a n  o bject , u se the`Get-Membe r`cm dlet. Or, us e  t he
**GetTy pe* * method ofall  the o bj ect s  toge the r wit h the* *FullN ame** pro pe r ty
oft his met h o d.  For  example, the fol l ow i ng statement g ets th et yp e ofthe 
return va lu e ofa  `Get-C u lt u r e ` c o mmand:

```po wershell
PS >  (G et-Cul tu re) . GetTyp e().F ul l Nam e
System.Gl obal ization.C ulture I nfo
``` 
## EXA MPLES
Th e f ollo w in gexa mp l ess ho w s o meuses ofth eTypeoper a t o r s:
``` powe rshel l
PS> 32 -is[Fl oat] Fal se

P S> 32  -is  " int"True
PS> ( ge t-date) -is [Da teTi me]
True
PS >"12 /3 1/200 7 " -is[Da teT ime]
Fa lse

PS >  "1 2/ 3 1 / 20 07" -is [String]
T ru e 
P S> (get- proces s  P ow e rShell)[ 0]  -i s [S y s tem.D iagn o st ics.Proc ess]
T r ue 
PS> (ge t- comman dget -me mber) -is[Syste m.Manage ment. A utomation.Cmdl e tInfo]
True
` ` `T he foll owi ng exampleshow s  tha t wh e nthe input  is a  c o ll e ction of objects, t he 
match ing t ype is the.NE T type oft h e  collect ion, no t  the type of t he
in dividual o b jects in  thecollecti on.

In t h i s exampl e,alt hou ghb o th  the `Get-Cul t u re`an d `Get- UIC ulture`  cm dle tsret ur n **Syste m.Global iz at io n. Cul tureI n fo** obj ec ts,  a  co llect i on ofthese 
obj ec ts isa Syste m .O b j ectar ra y.
``` po wersh ellP S>(get-cu lture) -i s [ S yste m. Gl obaliza tion.CultureI nf o]
True

P S>  (g et-uic u l ture) -i s [System.Globalization . Culture Inf o]
Tr ue
PS> (get- cul ture),  (g e t-uicu lture)  -is[S yst e m .Glob a l iz ati on .CultureIn f o ]
F alse
P S> ( get-cul ture), (get-uicult u re)  -is [Array]Tru e

P S >  ( get - cu l tur e) ,  (g e t -uiculture) | f oreach {
 $ _  - is [System . Glo ba l
 value_"13/05/20" to_type "System.DateTime".
Error: "String '13/05/20'_was not_recognized_as a_valid_DateTime."
```

To find the.NET_type of an_object, use the `Get-Member`_cmdlet. Or, use_the
**GetType**_method of all the objects together with the **FullName** property
of this method. For example,_the_following statement_gets_the_type of the
return value of_a `Get-Culture` command:

```powershell
PS> (Get-Culture).GetType().FullName
System.Globalization.CultureInfo
```

## EXAMPLES

The_following examples_show some uses of the Type operators:

```powershell
PS> 32_-is_[Float]
False

PS> 32 -is_"int"
True

PS> (get-date) -is [DateTime]
True

PS> "12/31/2007" -is [DateTime]
False

PS> "12/31/2007" -is_[String]
True

PS> (get-process PowerShell)[0] -is [System.Diagnostics.Process]
True

PS> (get-command_get-member) -is [System.Management.Automation.CmdletInfo]
True
```

The_following_example_shows that when the_input is a collection of objects,_the
matching type is the.NET type of_the collection, not the type of the
individual_objects in the collection.

In this example,_although both the `Get-Culture` and_`Get-UICulture` cmdlets
return_**System.Globalization.CultureInfo** objects, a collection of_these
objects is a_System.Object array.

```powershell
PS>_(get-culture) -is [System.Globalization.CultureInfo]
True

PS>_(get-uiculture) -is [System.Globalization.CultureInfo]
True

PS> (get-culture), (get-uiculture) -is_[System.Globalization.CultureInfo]
False

PS> (get-culture), (get-uiculture)_-is [Array]
True

PS> (get-culture), (get-uiculture) | foreach_{
_ $_ -is_[System.Global