Condividi tramite


DataFormWebPart.DoesPostbackEqualEvent Method

Checks whether the specified postback value contains the specified event name.

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

Syntax

'Declaration
Protected Friend Function DoesPostbackEqualEvent ( _
    postbackValue As String, _
    eventName As String, _
    checkForEqualsBracket As Boolean, _
    <OutAttribute> ByRef modifiedCommandStr As String _
) As Boolean
'Usage
Dim postbackValue As String
Dim eventName As String
Dim checkForEqualsBracket As Boolean
Dim modifiedCommandStr As String
Dim returnValue As Boolean

returnValue = Me.DoesPostbackEqualEvent(postbackValue, _
    eventName, checkForEqualsBracket, _
    modifiedCommandStr)
protected internal bool DoesPostbackEqualEvent(
    string postbackValue,
    string eventName,
    bool checkForEqualsBracket,
    out string modifiedCommandStr
)

Parameters

  • eventName
    Type: System.String

    The event name to check against the postbackValue.

  • checkForEqualsBracket
    Type: System.Boolean

    true to check the equal sign (=) and the braces ({/}); otherwise, false.

  • modifiedCommandStr
    Type: System.String

    When this method returns, contains a string that represents the information about the event. This parameter is passed uninitialized.

Return Value

Type: System.Boolean
true if postbackValue contains eventName; otherwise, false.

Remarks

The modifiedCommandStr parameter is set to an empty string if postbackValue does not contain eventName or the checkForEqualsBracket parameter is false.

See Also

Reference

DataFormWebPart Class

DataFormWebPart Members

Microsoft.SharePoint.WebPartPages Namespace