Skip to content

Invoke-Apartment

SYNOPSIS

PSCX Cmdlet:

SYNTAX

Invoke-Apartment [-Apartment] <ApartmentState> [-Expression] <ScriptBlock> [<CommonParameters>]

DESCRIPTION

EXAMPLES

EXAMPLE 1

PS C:\>


PARAMETERS

-Apartment

@{Text=}

Type: System.Threading.ApartmentState
Parameter Sets: (All)
Aliases:

Required: True
Position: 1
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-Expression

@{Text=}

Type: System.Management.Automation.ScriptBlock
Parameter Sets: (All)
Aliases:

Required: True
Position: 2
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.

INPUTS

OUTPUTS

NOTES

Back to top