ClaimActionCollectionMapExtensions.DeleteClaims 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
从 ClaimsIdentity 中删除具有给定 claimTypes 的所有声明。
public:
[System::Runtime::CompilerServices::Extension]
static void DeleteClaims(Microsoft::AspNetCore::Authentication::OAuth::Claims::ClaimActionCollection ^ collection, ... cli::array <System::String ^> ^ claimTypes);
public static void DeleteClaims (this Microsoft.AspNetCore.Authentication.OAuth.Claims.ClaimActionCollection collection, params string[] claimTypes);
static member DeleteClaims : Microsoft.AspNetCore.Authentication.OAuth.Claims.ClaimActionCollection * string[] -> unit
<Extension()>
Public Sub DeleteClaims (collection As ClaimActionCollection, ParamArray claimTypes As String())
参数
- collection
- ClaimActionCollection
- claimTypes
- String[]
要删除的声明类型。