다음을 통해 공유


ODataAnnotatable.SetAnnotation<T> 메서드

T 형식의 주석을 설정합니다.

네임스페이스:  Microsoft.Data.OData
어셈블리:  Microsoft.Data.OData(Microsoft.Data.OData.dll)

구문

‘선언
Public Sub SetAnnotation(Of T As Class) ( _
    annotation As T _
)
‘사용 방법
Dim instance As ODataAnnotatable
Dim annotation As T

instance.SetAnnotation(annotation)
public void SetAnnotation<T>(
    T annotation
)
where T : class
public:
generic<typename T>
where T : ref class
void SetAnnotation(
    T annotation
)
member SetAnnotation : 
        annotation:'T -> unit  when 'T : not struct
JScript는 제네릭 형식 및 메서드를 지원하지 않습니다.

유형 매개 변수

  • T
    주석 형식입니다.

매개 변수

  • annotation
    유형: T
    설정할 주석입니다.

참고 항목

참조

ODataAnnotatable 클래스

Microsoft.Data.OData 네임스페이스