SimpleFormWebPart.Content Property
Gets or sets embedded HTML or XML that provides content for this Web Part.
Namespace: Microsoft.SharePoint.WebPartPages
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No
Syntax
'Declaration
<WebPartStorageAttribute(Storage.None)> _
<BrowsableAttribute(False)> _
Public Property Content As String
Get
Set
'Usage
Dim instance As SimpleFormWebPart
Dim value As String
value = instance.Content
instance.Content = value
[WebPartStorageAttribute(Storage.None)]
[BrowsableAttribute(false)]
public string Content { get; set; }
Property Value
Type: System.String
A string that contains embedded HTML or XML content.
Remarks
The Content property is read/write. Changes to this property apply to all users of this Web Part. Embedded content is stored as a string value in the database. There is no maximum length for this string, and there is no default value. Because the Content property contains the body of the Web Part, content can consist of any Web-based material.
This property is optional, since content can also be provided using the ContentEditorWebPart.ContentLinkproperty. To provide content, however, at least one of these two methods must be used. The Web Part Page checks the ContentLink first and uses that if it is specified.
The Content property can contain embedded content or provide error text that this Web Part should display if ContentLink fails. Depending on your Web Part Page implementation, this property can be used to respond to users who attempt to reach online content without an Internet or intranet connection.