Modifica

Condividi tramite


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:
 property bool StoreLicenses { bool get(); void set(bool value); };
public bool StoreLicenses { get; set; }
member this.StoreLicenses : bool with get, set
Public 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, the StoreLicenses property is set to false, and then current value of the property is displayed.

_XDocument3 thisDoc = (_XDocument3)thisXDocument;
thisDoc.Permission.StoreLicenses = false;
thisXDocument.UI.Alert(this.Permission.StoreLicenses.ToString());
Dim thisDoc As _XDocument3 = DirectCast(thisXDocument, _XDocument3)
thisDoc.Permission.StoreLicenses = False
thisXDocument.UI.Alert(Me.Permission.StoreLicenses.ToString())

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.

Applies to