Authorization​Rule Class

Definition

This class defines an authorization rule in the HealthVault service.

public class AuthorizationRule
Inheritance
AuthorizationRule

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

Authorization​Rule(​Health​Record​Item​Permissions)

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

Authorization​Rule(​Health​Record​Item​Permissions, ​IList<​Authorization​Set​Definition>, ​IList<​Authorization​Set​Definition>)

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

Authorization​Rule(​String, ​String, ​Health​Record​Item​Permissions, ​IList<​Authorization​Set​Definition>, ​IList<​Authorization​Set​Definition>, ​Boolean, ​Authorization​Rule​Display​Flags)

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

Properties

Culture​Specific​Reasons

Gets a dictionary of language specifiers and reasons.

Display​Flags

Gets flags controlling display behavior of rules.

Exception​Sets

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

Is​Optional

Gets a value indicating whether the authorization rule is optional

Name

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

Permissions

Gets the permissions that the rule grants.

Reason

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

Target​Sets

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

Methods

Create​From​Xml(​XPath​Navigator)

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

Get​Base64​Encoded​Rules​Xml(​IList<​Authorization​Rule>)

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

Get​Rules​Xml(​IList<​Authorization​Rule>)

Retrieves the authorization XML for the specified rules.

Get​Xml()

Gets the XML representation of the rule.

To​String()

Gets the XML representation of the AuthorizationRule.