ClaimsPrincipal.Claims Property
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets a collection that contains all of the claims from all of the claims identities associated with this claims principal.
public:
virtual property System::Collections::Generic::IEnumerable<System::Security::Claims::Claim ^> ^ Claims { System::Collections::Generic::IEnumerable<System::Security::Claims::Claim ^> ^ get(); };
public virtual System.Collections.Generic.IEnumerable<System.Security.Claims.Claim> Claims { get; }
member this.Claims : seq<System.Security.Claims.Claim>
Public Overridable ReadOnly Property Claims As IEnumerable(Of Claim)
The claims associated with this principal.
A claims principal has a collection of ClaimsIdentity objects that is accessible through the Identities property. Each ClaimsIdentity in the collection contains one or more claims. The Claims property returns all of the claims from all of the claims identities in this collection.
The Claims property can be examined by custom implementations of the ClaimsAuthenticationManager class to make authentication decisions or to filter, transform, or enrich an incoming claim set; by custom implementations of the ClaimsAuthorizationManager class to enforce authorization policy; or by application code to make authorization decisions or to customize user experience based on the claims present in the collection.
Өнім | Нұсқалар |
---|---|
.NET | Core 1.0, Core 1.1, Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9 |
.NET Framework | 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
.NET Standard | 2.0, 2.1 |
UWP | 10.0 |
.NET кері байланысы
.NET — бастапқы коды ашық жоба. Пікір қалдыру үшін сілтемені таңдаңыз: