Skip to content

Stop HttpListener

github-actions edited this page Jul 25, 2026 · 1 revision

external help file: Pretendpoint.dll-Help.xml Module Name: Pretendpoint online version: https://docs.microsoft.com/dotnet/api/system.net.httplistener schema: 2.0.0

Stop-HttpListener

SYNOPSIS

Closes an HTTP listener.

SYNTAX

Stop-HttpListener [-Listener] <HttpListener> [-ProgressAction <ActionPreference>] [<CommonParameters>]

DESCRIPTION

{{ Fill in the Description }}

EXAMPLES

EXAMPLE 1

PS C:\> Stop-HttpListener $http

The $http listener is closed.

PARAMETERS

-Listener

The HTTP listener to close.

Type: HttpListener
Parameter Sets: (All)
Aliases:

Required: True
Position: 0
Default value: None
Accept pipeline input: True (ByValue)
Accept wildcard characters: False

-ProgressAction

{{ Fill ProgressAction Description }}

Type: ActionPreference
Parameter Sets: (All)
Aliases: proga

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.

INPUTS

System.Net.HttpListener to close.

System.Net.HttpListener

OUTPUTS

System.Object

NOTES

RELATED LINKS