Thursday, 9 January 2014

.Net Static Method

How to list the static method using Get-Member cmdlet?

Once you know the .net type, we can list the static method using the Get-Member.

[System.Guid]::Newguid()

[Sytem.Guid] -> .Net Type

Newguid() -> .Net Method

Have look at the below screenshot.



If you are in a situation to fetch the local machine timezone, you can use the method as mentioned in the below screenshot.