SPExternalApplicationRequestResult.GetContentControl Method

When implemented in a derived class, provides alternative rendering of the Web Part.

Namespace:  Microsoft.SharePoint
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No

Syntax

'Declaration
Public MustOverride Function GetContentControl ( _
    initParameters As String _
) As Control
'Usage
Dim instance As SPExternalApplicationRequestResult
Dim initParameters As String
Dim returnValue As Control

returnValue = instance.GetContentControl(initParameters)
public abstract Control GetContentControl(
    string initParameters
)

Parameters

  • initParameters
    Type: System.String

    Information (typically obtained by a call of GetInitParams()) that is needed to create the control that will be returned.

Return Value

Type: System.Web.UI.Control
A control, typically a Literal, that serves as the only child control of the Web Part.

Remarks

You could use this method to; for example, provide alternative chrome to the Web Part.

This method is called by the CreateChildControls method of the SilverlightWebPart that is built-in to Microsoft SharePoint Foundation and typically it would be called by the same method of any Web Part class that derives from ClientApplicationWebPartBase.

Notes to Implementers

Important

If you do not want to provide alternative rendering of the Web Part, you must implement this method to return a null reference (Nothing in Visual Basic).

See Also

Reference

SPExternalApplicationRequestResult Class

SPExternalApplicationRequestResult Members

Microsoft.SharePoint Namespace