你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

ODataMethodAttribute 类

定义

对 OData 方法进行注释。

[System.AttributeUsage(System.AttributeTargets.Method, AllowMultiple=false)]
public sealed class ODataMethodAttribute : Attribute
[<System.AttributeUsage(System.AttributeTargets.Method, AllowMultiple=false)>]
type ODataMethodAttribute = class
    inherit Attribute
Public NotInheritable Class ODataMethodAttribute
Inherits Attribute
继承
ODataMethodAttribute
属性

构造函数

ODataMethodAttribute(String)

使用名称初始化 ODataMethodAttribute 的新实例。

属性

MethodName

获取或设置序列化的名称。

适用于