共用方式為


DataFormWebPart.DoesPostbackEqualEvent method

檢查指定的回傳值是否包含指定的事件名稱。

Namespace:  Microsoft.SharePoint.WebPartPages
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

Syntax

'宣告
Protected Friend Function DoesPostbackEqualEvent ( _
    postbackValue As String, _
    eventName As String, _
    checkForEqualsBracket As Boolean, _
    <OutAttribute> ByRef modifiedCommandStr As String _
) As Boolean
'用途
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
)

參數

  • eventName
    Type: System.String

    要檢查postbackValue的事件名稱。

  • checkForEqualsBracket
    Type: System.Boolean

    若要檢查等號 (=) 和大括號 ({} /); true否則, false。

  • modifiedCommandStr
    Type: System.String

    這個方法傳回時,包含字串,表示事件的相關資訊。這個參數會傳遞未初始化。

傳回值

Type: System.Boolean
true如果postbackValue包含eventName;否則, false。

備註

如果postbackValue不包含eventName或checkForEqualsBracket參數是false, modifiedCommandStr參數是設定為空字串。

請參閱

參照

DataFormWebPart class

DataFormWebPart members

Microsoft.SharePoint.WebPartPages namespace