CustomAggregateMethodAnnotation Klasa
Definicja
Ważne
Niektóre informacje odnoszą się do produktu w wersji wstępnej, który może zostać znacząco zmodyfikowany przed wydaniem. Firma Microsoft nie udziela żadnych gwarancji, jawnych lub domniemanych, w odniesieniu do informacji podanych w tym miejscu.
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. |