-
-
Notifications
You must be signed in to change notification settings - Fork 7
New GenericObject
apobekiaris edited this page Jun 15, 2020
·
2 revisions
Create .Net Generic Objects.
New-GenericObject [[-typeName] <String>] [[-typeParameters] <String[]>] [[-constructorParameters] <Object[]>]
[[-PredifinedType] <String>] [<CommonParameters>]
Create .Net Generic Objects.
PS C:\> $d=New-GenericObject -PredifinedType StringDictionary
C:\> $d.Add("key","value")
C:\> $d
Key Value
--- -----
key value
Creates a Dictionary<string,string>
{{ Fill PredifinedType Description }}
Type: String
Parameter Sets: (All)
Aliases:
Accepted values: Collection, Dictionary, DictionaryOfLists, StringDictionary
Required: False
Position: 3
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
{{ Fill constructorParameters Description }}
Type: Object[]
Parameter Sets: (All)
Aliases:
Required: False
Position: 2
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
{{ Fill typeName Description }}
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: 0
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
{{ Fill typeParameters Description }}
Type: String[]
Parameter Sets: (All)
Aliases:
Required: False
Position: 1
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.