Partager via


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)

Syntax

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

value = instance.RequestPermissionUrl

instance.RequestPermissionUrl = value
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.

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:

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.

Examples

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