AuthorizationRule AuthorizationRule AuthorizationRule Class

Definition

This class defines an authorization rule in the HealthVault service.

public class AuthorizationRule
type AuthorizationRule = class
Public Class AuthorizationRule
Inheritance
AuthorizationRuleAuthorizationRuleAuthorizationRule

Remarks

Authorization rules are applied to authorized records to state what
permissions the person or group being authorized has on the data in
that record. See the HealthVault Developer's Guide for more information
on how authorization works in HealthVault.

This rule does not necessarily represent a rule that is present
on the server. It can be used to generate the necessary XML when 
using the Shell pages to authorize records.

Constructors

AuthorizationRule(HealthRecordItemPermissions) AuthorizationRule(HealthRecordItemPermissions) AuthorizationRule(HealthRecordItemPermissions)

Creates a new instance of the AuthorizationRule class with the specified permissions.

AuthorizationRule(HealthRecordItemPermissions, IList<AuthorizationSetDefinition>, IList<AuthorizationSetDefinition>) AuthorizationRule(HealthRecordItemPermissions, IList<AuthorizationSetDefinition>, IList<AuthorizationSetDefinition>) AuthorizationRule(HealthRecordItemPermissions, IList<AuthorizationSetDefinition>, IList<AuthorizationSetDefinition>)

Creates a new instance of the AuthorizationRule class with the specified permissions, target and exception sets.

AuthorizationRule(String, String, HealthRecordItemPermissions, IList<AuthorizationSetDefinition>, IList<AuthorizationSetDefinition>, Boolean, AuthorizationRuleDisplayFlags) AuthorizationRule(String, String, HealthRecordItemPermissions, IList<AuthorizationSetDefinition>, IList<AuthorizationSetDefinition>, Boolean, AuthorizationRuleDisplayFlags) AuthorizationRule(String, String, HealthRecordItemPermissions, IList<AuthorizationSetDefinition>, IList<AuthorizationSetDefinition>, Boolean, AuthorizationRuleDisplayFlags)

Creates a new instance of the AuthorizationRule class with the specified name, reason, permissions, target, exception sets, optional and display flags.

Properties

CultureSpecificReasons CultureSpecificReasons CultureSpecificReasons

Gets a dictionary of language specifiers and reasons.

DisplayFlags DisplayFlags DisplayFlags

Gets flags controlling display behavior of rules.

ExceptionSets ExceptionSets ExceptionSets

Gets the sets of health record items that are excluded by this rule even if they are part of the TargetSets.

IsOptional IsOptional IsOptional

Gets a value indicating whether the authorization rule is optional

Name Name Name

Gets the name uniquely identifying the rule within the rule set.

Permissions Permissions Permissions

Gets the permissions that the rule grants.

Reason Reason Reason

Gets the reason the application wants the access represented by this rule.

TargetSets TargetSets TargetSets

Gets the sets of health record items to which this rule grants permission.

Methods

CreateFromXml(XPathNavigator) CreateFromXml(XPathNavigator) CreateFromXml(XPathNavigator)

Creates an instance of an AuthorizationRule object using the specified XML.

GetBase64EncodedRulesXml(IList<AuthorizationRule>) GetBase64EncodedRulesXml(IList<AuthorizationRule>) GetBase64EncodedRulesXml(IList<AuthorizationRule>)

Gets the base-64 encoding of the authorization XML for the specified rules.

GetRulesXml(IList<AuthorizationRule>) GetRulesXml(IList<AuthorizationRule>) GetRulesXml(IList<AuthorizationRule>)

Retrieves the authorization XML for the specified rules.

GetXml() GetXml() GetXml()

Gets the XML representation of the rule.

ToString() ToString() ToString()

Gets the XML representation of the AuthorizationRule.

Applies to