Office.RemoveHandlerOptions interface

削除されるイベント ハンドラーまたはハンドラーを決定するオプションを提供します。

注釈

使用元

function onBindingDataChanged(eventArgs) {
    // Handle binding changes.
}

function removeEventHandlerFromBinding() {
    const options: Office.RemoveHandlerOptions = {
        handler: onBindingDataChanged
    };

    Office.select("bindings#MyBinding").removeHandlerAsync(
        Office.EventType.BindingDataChanged,
        options
    );
}

プロパティ

asyncContext

コールバックに渡される AsyncResult オブジェクトの asyncContext プロパティで、変更せずに返される任意の型のユーザー定義項目。

handler

削除するハンドラー。 特定のハンドラーが指定されていない場合は、指定されたイベントの種類のすべてのハンドラーが削除されます。

プロパティの詳細

asyncContext

コールバックに渡される AsyncResult オブジェクトの asyncContext プロパティで、変更せずに返される任意の型のユーザー定義項目。

asyncContext?: any

プロパティ値

any

handler

削除するハンドラー。 特定のハンドラーが指定されていない場合は、指定されたイベントの種類のすべてのハンドラーが削除されます。

handler?: (eventArgs?: Office.BindingDataChangedEventArgs | Office.BindingSelectionChangedEventArgs) => any

プロパティ値