Skip to content

Commit 776df8b

Browse files
author
Ron Petrusha
authored
Added language identifier
1 parent 85b7af9 commit 776df8b

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

xml/System.Security.Claims/ClaimsPrincipal.xml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,7 @@
7272
## Examples
7373
The following example extracts the claims presented by a user in an HTTP request and writes them to the HTTP response. The current user is read from the <xref:System.Web.HttpContext> as a <xref:System.Security.Claims.ClaimsPrincipal>. The claims are then read from it and then are written to the response.
7474
75-
```
76-
75+
```csharp
7776
ClaimsPrincipal principal = HttpContext.Current.User as ClaimsPrincipal;
7877
if (null != principal)
7978
{
@@ -1322,4 +1321,4 @@ if (null != principal)
13221321
</Docs>
13231322
</Member>
13241323
</Members>
1325-
</Type>
1324+
</Type>

0 commit comments

Comments
 (0)