为批注项获取或设置序列化的类型名称。
命名空间: Microsoft.Data.OData
程序集: Microsoft.Data.OData(在 Microsoft.Data.OData.dll 中)
语法
声明
Public Property TypeName As String
Get
Set
用法
Dim instance As SerializationTypeNameAnnotation
Dim value As String
value = instance.TypeName
instance.TypeName = value
public string TypeName { get; set; }
public:
property String^ TypeName {
String^ get ();
void set (String^ value);
}
member TypeName : string with get, set
function get TypeName () : String
function set TypeName (value : String)
属性值
类型:System.String
批注项的序列化类型名称。
注释
如果此属性为 null,则不写入类型名称。 如果此属性为非空,则属性值将用作写入负载的类型名称。 如果存在此批注,则始终重写在批注项上指定的类型名称。 如果不存在此批注,则将 ODataEntry、 ODataComplexValue,或 ODataMultiValue 上 TypeName 属性的值用作负载中的类型名称。