Click or drag to resize

SecurityExtensionsGetGrantedPolicies Method

Gets the granted policies from the specified claims principal

Namespace:  SanteDB.Core.Security
Assembly:  SanteDB.Core.Api (in SanteDB.Core.Api.dll) Version: 3.0.481-alpha
Syntax
public static IEnumerable<IPolicyInstance> GetGrantedPolicies(
	this IClaimsPrincipal me,
	IPolicyInformationService pip
)

Parameters

me
Type: SanteDB.Core.Security.ClaimsIClaimsPrincipal

[Missing <param name="me"/> documentation for "M:SanteDB.Core.Security.SecurityExtensions.GetGrantedPolicies(SanteDB.Core.Security.Claims.IClaimsPrincipal,SanteDB.Core.Security.Services.IPolicyInformationService)"]

pip
Type: SanteDB.Core.Security.ServicesIPolicyInformationService

[Missing <param name="pip"/> documentation for "M:SanteDB.Core.Security.SecurityExtensions.GetGrantedPolicies(SanteDB.Core.Security.Claims.IClaimsPrincipal,SanteDB.Core.Security.Services.IPolicyInformationService)"]

Return Value

Type: IEnumerableIPolicyInstance

[Missing <returns> documentation for "M:SanteDB.Core.Security.SecurityExtensions.GetGrantedPolicies(SanteDB.Core.Security.Claims.IClaimsPrincipal,SanteDB.Core.Security.Services.IPolicyInformationService)"]

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IClaimsPrincipal. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
See Also