Sdílet prostřednictvím


CustomAggregateMethodAnnotation Třída

Definice

Umožňuje klientovi informovat OData, které jsou definované vlastní metody agregace. Aby to bylo možné provést, musí obdržet methodToken – to je úplný identifikátor metody v adrese URL OData – a IDictionary, který mapuje typ vstupu agregační metody na jeho MethodInfo.

public class CustomAggregateMethodAnnotation
type CustomAggregateMethodAnnotation = class
Public Class CustomAggregateMethodAnnotation
Dědičnost
CustomAggregateMethodAnnotation

Konstruktory

CustomAggregateMethodAnnotation()

Inicializuje novou instanci CustomAggregateMethodAnnotation třídy .

Metody

AddMethod(String, IDictionary<Type,MethodInfo>)

Přidá všechny implementace metody, které sdílejí stejný methodToken.

GetMethodInfo(String, Type, MethodInfo)

Získejte implementaci metody s určuje returnType a methodToken. Pokud neexistuje žádná metoda, která by požadavkům odpovídala, vrátí hodnotu null.

Platí pro