Computer Science, asked by mahipalsingh3430, 11 months ago

If $Name="User1" then the command $name.gettype() provides the information on

Answers

Answered by ankurbadani84
0

Answer:

Explanation:

The getType() command returns the type of a variable.

It could be number, string, function, list etc. The output is a short string encoding the variable type.

The values that getType() can return are:

"DATA" -> data variable

"EXPR" -> symbolic expression

"FUNC" -> function

"LIST" -> list

"MAT" -> matrix

"NONE" -> undefined variable

"NUM" -> number

"OTH" -> unknown variable type (usually assembly-related)

"PIC" -> picture

"PRGM" -> program

"STR" -> string

"TEXT" -> text file

$name.gettype()  -> STR

Answered by aqibkincsem
0

Answer:

The key here is what we're doing is composing the yield of $thing2 into Get-Member. So the yield of $thing2 is two strings, and that is what's really hitting Get-Member.

On the off chance that we need to perceive what sort of item $thing2 truly is, we have to utilize a technique that is incorporated with each PowerShell object: GetType().

Get-Member is helpful for investigating objects properties and strategies, just as their sort.

Explanation:

Similar questions
Biology, 6 months ago