开发者

Meaning of the '+' in PowerShell new-object declarations

开发者 https://www.devze.com 2023-02-19 15:21 出处:网络
I\'m wondering how to know when to use the \'+\' in PowerShell object declarations. 开发者_JAVA百科Why, for example, is it:

I'm wondering how to know when to use the '+' in PowerShell object declarations.

开发者_JAVA百科

Why, for example, is it: $searchFilterC = new-object Microsoft.Exchange.WebServices.Data.SearchFilter+SearchFilterCollection

and not: $searchFilterC = new-object Microsoft.Exchange.WebServices.Data.SearchFilter.SearchFilterCollection

Thanks!


The '+' indicates a nested type, see here for more information.

0

精彩评论

暂无评论...
验证码 换一张
取 消