Permission.RequestPermissionUrl Property (Microsoft.Office.InfoPath)

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)

Syntax

'Declaration
Public MustOverride Property RequestPermissionUrl As String
'Usage
Dim instance As Permission
Dim value As String

value = instance.RequestPermissionUrl

instance.RequestPermissionUrl = value
public abstract string RequestPermissionUrl { get; set; }

Property Value

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:

  • 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 Office InfoPath 2007.

Example

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);
}
Public Sub CTRL1_Clicked(ByVal sender As Object, _
   ByVal e As ClickedEventArgs)
   MessageBox.Show(Me.Permission.RequestPermissionUrl)
End Sub

See Also

Reference

Permission Class
Permission Members
Microsoft.Office.InfoPath Namespace