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.
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.
No comments:
Post a Comment