Click or drag to resize

IPolicyInformationServiceAddPolicies Method

Adds the specified policies to the specified securable object

Namespace:  SanteDB.Core.Security.Services
Assembly:  SanteDB.Core.Api (in SanteDB.Core.Api.dll) Version: 3.0.481-alpha
Syntax
void AddPolicies(
	Object securable,
	PolicyGrantType rule,
	IPrincipal principal,
	params string[] policyOids
)

Parameters

securable
Type: SystemObject
The object to which policies should be added
rule
Type: SanteDB.Core.Model.SecurityPolicyGrantType
The rule to be applied to the securable
principal
Type: System.Security.PrincipalIPrincipal
The principal which is adding policies ot the securable
policyOids
Type: SystemString
The oids of the policies to add
See Also