ClientApplicationWebPartBase.GetInitParams Method

Returns a comma-delimited string of key-value pairs that is used to initialize the control that will render the Web Part.

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

protected string GetInitParams()

Return Value

Type: System.String
The initialization parameters.

This method is typically called by the CreateChildControls() method of a class derived from ClientApplicationWebPartBase. The String that is returned is passed as the parameter to the GetContentControl(String) method.

The parameters that are returned include the URL of the Web page and information about the Form Digest of the page. If an External Application Provider (EAP) has been enabled, then the parameters also include the request token that the external application uses to make requests to the SharePoint Foundation Web application and the URL of the request forwarding handler.

© 2015 Microsoft