Meaning of the two consecutive Colons ::

Hi Expert,

I was wondering what the "::" like in the following example means?

$now = [DateTime]::Now

Thanks for your answer.


  • You can explore more about these kinds of members in an example like this by deleting the word Now, so all you are left with is


    and doing tab completion to see what else comes up.  If you want to get a more explicit list of static members on an object check the MSDN documentation for the class or just type the


    followed by

    | gm -static

    In this case you could type:

    [DateTime] | gm -static

    To get more on the Now member you could type

    [DateTime]::Now | gm -static

Reply Children
No Data