Permission.RequestPermissionUrl Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets or sets the file, URL, or e-mail address to contact for users who need additional permissions on the current form.
public:
abstract property System::String ^ RequestPermissionUrl { System::String ^ get(); void set(System::String ^ value); };
public abstract string RequestPermissionUrl { get; set; }
member this.RequestPermissionUrl : string with get, set
Public MustOverride Property RequestPermissionUrl As String
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.
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
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 InfoPath Filler.