How do I properly use ForEach() statement of List?
问题 I'm confused what I'm doing wrong in ForEach method syntax of List? PS D:\ntt> $nicInfo.IpConfigurations.Count 2 PS D:\ntt> $nicInfo.IpConfigurations[0] PrivateIpAddressVersion Name Primary PrivateIpAddress PrivateIpAllocationMethod Subnet Name PublicIpAddress Name ProvisioningState ----------------------- ---- ------- ---------------- ------------------------- ----------- -------------------- ----------------- IPv4 ipconfig1 True 10.233.0.4 Dynamic Succeeded PS D:\ntt> $nicInfo