次の方法で共有


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 名前空間