In order to call a static / shared .NET method from PowerShell, use the following format.
Format:
1[type]::StaticMethodName
Example:
1[DateTime]::Now
Note: In this specific example, the PowerShell alias Get-Date
could be used instead of [DateTime]::Now
- this is just an example!
comments powered by Disqus