다음을 통해 공유


CustomAggregateMethodAnnotation 클래스

정의

클라이언트가 정의된 사용자 지정 집계 메서드를 OData에 알릴 수 있습니다. 이렇게 하려면 OData URL에 있는 메서드의 전체 식별자인 methodToken과 집계 메서드의 입력 형식을 MethodInfo에 매핑하는 IDictionary를 받아야 합니다.

public class CustomAggregateMethodAnnotation
type CustomAggregateMethodAnnotation = class
Public Class CustomAggregateMethodAnnotation
상속
CustomAggregateMethodAnnotation

생성자

CustomAggregateMethodAnnotation()

CustomAggregateMethodAnnotation 클래스의 새 인스턴스를 초기화합니다.

메서드

AddMethod(String, IDictionary<Type,MethodInfo>)

동일한 methodToken을 공유하는 메서드의 모든 구현을 추가합니다.

GetMethodInfo(String, Type, MethodInfo)

returnType 및 methodToken을 지정하여 메서드의 구현을 가져옵니다. 요구 사항과 일치하는 메서드가 없으면 null을 반환합니다.

적용 대상