Get-SPClaimTypeEncoding

返回所有声明类型的列表。

语法

Get-SPClaimTypeEncoding
   [-AssignmentCollection <SPAssignmentCollection>]
   [-ClaimType <String>]
   [-EncodingCharacter <Char>]
   [<CommonParameters>]

说明

使用 Get-SPClaimTypeEncoding cmdlet 可返回以下内容:

-- 在场中注册的所有声明类型的列表

-- 调用 SPClaim.ToEncodedString 方法时将编码的 Unicode 字符

-- SPClaim.ClaimType 属性设置为有效值

有关 SPClaim 方法和属性的附加信息,请分别参阅 M:Microsoft.SharePoint.Administration.Claims.SPClaim.ToEncodedString 和 P:Microsoft.SharePoint.Administration.Claims.SPClaim.ClaimType。

有关适用于 SharePoint 产品的 Windows PowerShell 的权限和最新信息,请参阅 SharePoint Server cmdlet

示例

--------------示例 1--------

Get-SPClaimTypeEncoding

此示例返回服务器场中的所有声明类型的列表。

--------------示例 2--------

Get-SPClaimTypeEncoding -ClaimType "http://schemas.xmlsoap.org/ws/2005/05/identity/claims/country"

此示例使用 ClaimType 参数返回特定声明类型。

参数

-ClaimType

指定映射到某类输出声明的编码字符。

Type:String
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
Applies to:SharePoint Server Subscription Edition

-EncodingCharacter

指定映射到输入字符的声明类型。

Type:Char
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
Applies to:SharePoint Server Subscription Edition

-工作分配

Manages objects for the purpose of proper disposal. Use of objects, such as SPWeb or SPSite, can use large amounts of memory and use of these objects in Windows PowerShell scripts requires proper memory management. Using the SPAssignment object, you can assign objects to a variable and dispose of the objects after they are needed to free up memory. When SPWeb, SPSite, or SPSiteAdministration objects are used, the objects are automatically disposed of if an assignment collection or the Global parameter is not used.

When the Global parameter is used, all objects are contained in the global store. If objects are not immediately used, or disposed of by using the Stop-SPAssignment command, an out-of-memory scenario can occur.

Type:SPAssignmentCollection
Position:Named
Default value:None
Accept pipeline input:True
Accept wildcard characters:False
Applies to:SharePoint Server Subscription Edition