編輯

共用方式為


Remove-AdfsRelyingPartyWebContent

Removes a relying party web content object.

Syntax

Remove-AdfsRelyingPartyWebContent
      [[-Locale] <CultureInfo>]
      -TargetRelyingPartyName <String>
      [-WhatIf]
      [-Confirm]
      [<CommonParameters>]
Remove-AdfsRelyingPartyWebContent
      [-TargetRelyingPartyWebContent] <AdfsRelyingPartyWebContent>
      [-WhatIf]
      [-Confirm]
      [<CommonParameters>]

Description

The Remove-AdfsRelyingPartyWebContent cmdlet removes a relying party web content object. Specify a relying party web content object by using a name and locale, or use the Get-AdfsRelyingPartyWebContent cmdlet. If you do not specify a locale, the cmdlet uses the invariant locale.

Examples

Example 1: Remove the web content object for the invariant locale

PS C:\> Remove-AdfsRelyingPartyWebContent -TargetRelyingPartyName "RelyingParty01"

This command removes the web content object for the relying party named RelyingParty01 for the invariant locale.

Example 2: Remove the web content object for a specified locale

PS C:\> Remove-AdfsRelyingPartyWebContent -Locale en-us -TargetRelyingPartyName "RelyingParty01"

This command removes the web content object for the relying party named RelyingParty01 for the specified locale.

Parameters

-Confirm

Prompts you for confirmation before running the cmdlet.

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

-Locale

Specifies a locale. The cmdlet removes relying party web content for the locale that you specify. If you do not specify a locale, the cmdlet removes relying party web content for the invariant locale.

Type:CultureInfo
Position:0
Default value:None
Required:False
Accept pipeline input:True
Accept wildcard characters:False

-TargetRelyingPartyName

Specifies the name of the relying party from which to delete web content.

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

-TargetRelyingPartyWebContent

Specifies the web content to remove from the relying party.

Type:AdfsRelyingPartyWebContent
Aliases:TargetWebContent
Position:0
Default value:None
Required:True
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:False
Required:False
Accept pipeline input:False
Accept wildcard characters:False