Share via


SPAppPermissionProvider.CreateControl method

Creates a UI control to grant app permission.

Namespace:  Microsoft.SharePoint.Administration
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

Syntax

'Declaration
Public Overridable Function CreateControl ( _
    permissionRequestContext As SPAppPermissionRequestContext _
) As Control
'Usage
Dim instance As SPAppPermissionProvider
Dim permissionRequestContext As SPAppPermissionRequestContext
Dim returnValue As Control

returnValue = instance.CreateControl(permissionRequestContext)
public virtual Control CreateControl(
    SPAppPermissionRequestContext permissionRequestContext
)

Parameters

Return value

Type: System.Web.UI.Control
Returns a null reference (Nothing in Visual Basic) if there is no UI control to show.

See also

Reference

SPAppPermissionProvider class

SPAppPermissionProvider members

Microsoft.SharePoint.Administration namespace