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

public abstract Control GetContentControl(
	string 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.

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 noteImportant

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).