Export (0) Print
Expand All

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.InfoPath
Assembly:  Microsoft.Office.InfoPath (in Microsoft.Office.InfoPath.dll)

public abstract 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.

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:

  • A web address: http://companyserver/request_permissions.asp

  • A file: \\companyserver\share\requesting_permissions.txt

  • An e-mail address: mailto:permissionsmrg@example.com?Subject=Request%20permissions

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.

In the following example, clicking the Button control displays the URL or e-mail address to contact for additional permissions.

public void CTRL1_Clicked(object sender, ClickedEventArgs e)
{
   MessageBox.Show(this.Permission.RequestPermissionUrl);
}

Community Additions

Show:
© 2014 Microsoft