Udostępnij za pośrednictwem


CustomAggregateMethodAnnotation Klasa

Definicja

Umożliwia klientowi określenie danych OData, które są zdefiniowanymi niestandardowymi metodami agregacji. Aby to zrobić, musi otrzymać metodę MethodToken — jest to pełny identyfikator metody w adresie URL OData — i IDictionary, który mapuje typ wejściowy metody agregacji na metodę MethodInfo.

public class CustomAggregateMethodAnnotation
type CustomAggregateMethodAnnotation = class
Public Class CustomAggregateMethodAnnotation
Dziedziczenie
CustomAggregateMethodAnnotation

Konstruktory

CustomAggregateMethodAnnotation()

Inicjuje nowe wystąpienie klasy CustomAggregateMethodAnnotation.

Metody

AddMethod(String, IDictionary<Type,MethodInfo>)

Dodaje wszystkie implementacje metody, która współużytkuje tę samą metodęToken.

GetMethodInfo(String, Type, MethodInfo)

Pobierz implementację metody z parametrem returnType i methodToken. Jeśli nie ma metody zgodnej z wymaganiami, zwraca wartość null.

Dotyczy