Skip to content

Information about the ::new() method for constructor calls is missing #8274

@mklement0

Description

@mklement0

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-aboutArea - About_ topicsresolution-answeredStatus - closed by existing documentation

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions