New-UDCollectionItem
SYNOPSIS
Creates a new collection item.
SYNTAX
content (Default)
New-UDCollectionItem [-Id <String>] [-Content <ScriptBlock>] [-SecondaryContent <ScriptBlock>] [-Active]
[<CommonParameters>]
link
New-UDCollectionItem [-Id <String>] [-Content <ScriptBlock>] [-Url <String>] [-Active] [<CommonParameters>]
DESCRIPTION
Creates a new collection item.
EXAMPLES
Example 1
PS C:\> New-UDCollection -Content {
New-UDCollectionItem -Content {
"Item 1"
}
New-UDCollectionItem -Content {
"Item 2"
}
New-UDCollectionItem -Content {
"Item 3"
}
}
Creates a collection of 3 items.
PARAMETERS
-Active
Whether this collection item is active.
Type: System.Management.Automation.SwitchParameter
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False
-Content
The content for this collection item.
Type: System.Management.Automation.ScriptBlock
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-Id
The ID of this collection item.
Type: System.String
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-SecondaryContent
Secondary content for this collection item.
Type: System.Management.Automation.ScriptBlock
Parameter Sets: content
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-Url
URL for this collection item. This should be used when New-UDCollection has the LinksCollection parameter specified.
Type: System.String
Parameter Sets: link
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
CommonParameters
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.