获取或设置批注类型。
命名空间: Microsoft.Data.OData
程序集: Microsoft.Data.OData(在 Microsoft.Data.OData.dll 中)
语法
声明
Public Function GetAnnotation(Of T As Class) As T
用法
Dim instance As ODataAnnotatable
Dim returnValue As T
returnValue = instance.GetAnnotation()
public T GetAnnotation<T>()
where T : class
public:
generic<typename T>
where T : ref class
T GetAnnotation()
member GetAnnotation : unit -> 'T when 'T : not struct
JScript 不支持一般类型和方法。
类型参数
- T
批注类型。
返回值
类型:T
批注类型 T 或 null,如果不存在。