Edit

Share via


Permission.StoreLicenses Property

Definition

Gets or sets whether the user's license to view the current form should be cached to allow offline viewing when the user cannot connect to a rights management server.

public:
 abstract property bool StoreLicenses { bool get(); void set(bool value); };
public abstract bool StoreLicenses { get; set; }
member this.StoreLicenses : bool with get, set
Public MustOverride Property StoreLicenses As Boolean

Property Value

true if the user's license will be cached for offline viewing; otherwise false.

Examples

In the following example, clicking the Button control sets the StoreLicenses property to false, and then displays the current value of the property.

public void CTRL1_Clicked(object sender, ClickedEventArgs e)
{
   Permission.StoreLicenses = false;
   MessageBox.Show(this.Permission.StoreLicenses.ToString());
}
Public Sub CTRL1_Clicked(ByVal sender As Object, _
   ByVal e As ClickedEventArgs)
   Permission.StoreLicenses = False
   MessageBox.Show(Me.Permission.StoreLicenses.ToString())
End Sub

Remarks

Corresponds to the setting of the Require a connection to verify a user's permission check box in the Permission dialog box. If the setting of the StoreLicences property is true, the check box is cleared and a user's license is cached locally. If the setting is false, the check box is selected and users other than the form owner must connect to the rights management server and acquire the license to work with the form each time they open it.

This member can be accessed only by forms running in the same domain as the currently open form, or by forms that have been granted cross-domain permissions.

This type or member can be accessed only from code running in forms opened in Microsoft InfoPath Filler.

Applies to