다음을 통해 공유


WebPart.Caption Property

NOTE: This API is now obsolete.

Gets or sets a string that is added following the title in the title bar of the Web Part. This property is intended for document names or other context-specific information.

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

Syntax

'Declaration
<ObsoleteAttribute("Use Subtitle instead.")> _
<WebPartStorageAttribute(Storage.None)> _
Public Property Caption As String
    Get
    Set
'Usage
Dim instance As WebPart
Dim value As String

value = instance.Caption

instance.Caption = value
[ObsoleteAttribute("Use Subtitle instead.")]
[WebPartStorageAttribute(Storage.None)]
public string Caption { get; set; }

Property Value

Type: System.String
A string value for the text caption that is displayed following the Title property in the title bar. The default value is String.Empty.

Remarks

The value of its WebPartStorageAttribute is Storage.None, which specifies that the property is not stored.

See Also

Reference

WebPart Class

WebPart Members

Microsoft.SharePoint.WebPartPages Namespace