-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Closed
Labels
area-aboutArea - About_ topicsArea - About_ topicsresolution-answeredStatus - closed by existing documentationStatus - closed by existing documentation
Description
PSv5+ has an intrinsic member available on [type] instances that facilitates constructor calls, which should be documented: the static ::new() method; e.g.:
# Same as:
# New-Object -TypeName regex -ArgumentList foo, Compiled
[regex]::new('foo', 'Compiled')Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.
- ID: 7ec20fcd-d827-b50b-c214-c8af0d4cd3c6
- Version Independent ID: f9a188cd-3cfa-4b44-da47-48340ec8fc36
- Content: about_Intrinsic_Members - PowerShell
- Content Source: reference/7.1/Microsoft.PowerShell.Core/About/about_Intrinsic_Members.md
- Product: powershell
- Technology: powershell-conceptual
- GitHub Login: @sdwheeler
- Microsoft Alias: sewhee
Metadata
Metadata
Assignees
Labels
area-aboutArea - About_ topicsArea - About_ topicsresolution-answeredStatus - closed by existing documentationStatus - closed by existing documentation