編集

次の方法で共有


Test-CsInboundBlockedNumberPattern

This cmdlet tests the given number against the created (by using New-CsInboundBlockedNumberPattern cmdlet) blocked numbers pattern.

Syntax

Test-CsInboundBlockedNumberPattern
    -PhoneNumber <String>
    [-TenantId <Guid>]
    [-WhatIf]
    [-Confirm]
    [<CommonParameters>]

Description

This cmdlet tests the given number against the created (by using New-CsInboundBlockedNumberPattern cmdlet) blocked numbers pattern.

Examples

Example 1

PS C:\> Test-CsInboundBlockedNumberPattern -PhoneNumber "321321321"

Tests the "321321321" number to check if it will be blocked for inbound calls.

Parameters

-Confirm

Prompts you for confirmation before running the cmdlet.

Type:SwitchParameter
Aliases:cf
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-PhoneNumber

The phone number to be tested.

Type:String
Position:Named
Default value:None
Required:True
Accept pipeline input:True
Accept wildcard characters:False

-TenantId

This parameter is reserved for internal Microsoft use.

Type:Guid
Position:Named
Default value:None
Required:False
Accept pipeline input:True
Accept wildcard characters:False

-WhatIf

Shows what would happen if the cmdlet runs. The cmdlet is not run.

Type:SwitchParameter
Aliases:wi
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

Inputs

System.String

System.Guid

Outputs

System.Object