共用方式為


FilterInfoBar.AddMessage Method (String, Boolean, Boolean)

Adds a message, optionally also showing the Filter icon and explicitly specifying whether or not to apply HTML encoding to the message text.

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

Syntax

'Declaration
Public Sub AddMessage ( _
    message As String, _
    showFilterIcon As Boolean, _
    dontEncode As Boolean _
)
'Usage
Dim instance As FilterInfoBar
Dim message As String
Dim showFilterIcon As Boolean
Dim dontEncode As Boolean

instance.AddMessage(message, showFilterIcon, _
    dontEncode)
public void AddMessage(
    string message,
    bool showFilterIcon,
    bool dontEncode
)

Parameters

  • showFilterIcon
    Type: System.Boolean

    A value that indicates whether to show the filter icon. true indicates that the filter icon is visible; otherwise, false.

  • dontEncode
    Type: System.Boolean

    A value that indicates whether to encode the message. true indicates no encoding; otherwise, false.

See Also

Reference

FilterInfoBar Class

FilterInfoBar Members

AddMessage Overload

Microsoft.SharePoint.WebPartPages Namespace