多做题,通过考试没问题!

微软认证考试

睦霖题库>其他计算机考试>微软认证考试

You are creating a Windows Communication Foundation (WCF) service that uses claims-based authorization. The following code retrieves the correct claim set.var claims = ServiceSecurityContext.Current.AuthorizationContext.ClaimSets[0];You need to validate that the requesting client application has included a valid DNS value in the claim. Which code segment should you use to retrieve the claim for validation?()

  • A、claims.FindClaims(ClaimTypes.Dns, Rights.PossessProperty).FirstOrDefault();
  • B、claims.FindClaims(ClaimTypes.Dns, Rights.Identity).FirstOrDefault();
  • C、claims.ContainsClaim(Claim.CreateDnsClaim(ClaimTypes.Dns));
  • D、claims.Equals(ClaimTypes.Dns);
正确答案:A
答案解析:
进入题库查看解析

微信扫一扫手机做题