Permission.RequestPermissionURL Property

Gets or sets the file, URL, or e-mail address to contact for users who need additional permissions on the current form.

Namespace:  Microsoft.Office.Interop.InfoPath.SemiTrust
Assembly:  Microsoft.Office.Interop.InfoPath.SemiTrust (in Microsoft.Office.Interop.InfoPath.SemiTrust.dll)

Syntax

'Declaration
Property RequestPermissionURL As String
    Get
    Set
'Usage
Dim instance As Permission
Dim value As String

value = instance.RequestPermissionURL

instance.RequestPermissionURL = value
string RequestPermissionURL { get; set; }

Property Value

Type: System.String
The string specified in the Users can request additional permissions from text box of the Permission dialog box in InfoPath design mode, or the value set from code using this property.

Remarks

The RequestPermissionUrl property corresponds to the value specified in the Users can request additional permissions from text box in the Design mode user interface. Use the RequestPermissionUrl property to specify a file, a Web site, or an e-mail contact from which users can request, or learn how to request, additional permissions on the active form. For example:

Because the Permission object and its members are new to Microsoft InfoPath 2010, you must cast the object returned by the thisXDocument variable to the _XDocument3 type to access this object and its members. For more information, see How to: Use Microsoft.Office.Interop.InfoPath.SemiTrust Members That Are Not Compatible with InfoPath 2003.

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.

Examples

In the following example, the RequestPermissionURL property is used to display the URL or e-mail address to contact for additional permissions..

_XDocument3 thisDoc = (_XDocument3)thisXDocument;
thisXDocument.UI.Alert(thisDoc.Permission.RequestPermissionURL);
Dim thisDoc As _XDocument3 = DirectCast(thisXDocument, _XDocument3)
thisXDocument.UI.Alert(thisDoc.Permission.RequestPermissionURL)

See Also

Reference

Permission Interface

Permission Members

Microsoft.Office.Interop.InfoPath.SemiTrust Namespace