次の方法で共有


InfoPathEventHandlerAttribute クラス

定義

フォーム コード内のイベント ハンドラーを定義するには、この属性を適用します。

public ref class InfoPathEventHandlerAttribute sealed : Attribute
[System.AttributeUsage(System.AttributeTargets.Method)]
public sealed class InfoPathEventHandlerAttribute : Attribute
type InfoPathEventHandlerAttribute = class
    inherit Attribute
Public NotInheritable Class InfoPathEventHandlerAttribute
Inherits Attribute
継承
InfoPathEventHandlerAttribute
属性

注釈

重要: イベント ハンドラーの InfoPathEventHandler 属性の仕様でエラーが発生しないようにするには、InfoPath ユーザー インターフェイス コマンドのみを使用して、イベント ハンドラー コードのスタブを追加する必要があります。 詳細については、「How to: Add an Event Handler Using the InfoPath 2003 Object Model」を参照してください。

コンストラクター

InfoPathEventHandlerAttribute()

このメンバは内部使用の目的で予約されており、ユーザー コード内での直接の使用を想定していません。

プロパティ

DataObject

イベントハンドラーOnAfterChangeに適用される属性のInfoPathEventHandlerAttributeイベント ソースであるデータ アダプターの名前を取得または設定します。

EventType

属性で列挙としてInfoPathEventType指定されたイベントの種類をInfoPathEventHandlerAttribute取得または設定します。

MatchPath

属性のイベント ソース (イベントに該当する場合) InfoPathEventHandlerAttribute を指定する XPath 式を取得または設定します。

適用対象