Share via


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

SerializePropertyNamesAsCamelCaseAttribute.IsDefinedOnType 方法

定义

重载

IsDefinedOnType(Type)

指示给定类型是否使用 SerializePropertyNamesAsCamelCaseAttribute 进行批注。

IsDefinedOnType<T>()

指示给定类型是否使用 SerializePropertyNamesAsCamelCaseAttribute 进行批注。

IsDefinedOnType(Type)

Source:
SerializePropertyNamesAsCamelCaseAttribute.cs

指示给定类型是否使用 SerializePropertyNamesAsCamelCaseAttribute 进行批注。

public static bool IsDefinedOnType (Type modelType);
static member IsDefinedOnType : Type -> bool
Public Shared Function IsDefinedOnType (modelType As Type) As Boolean

参数

modelType
Type

要测试的类型。

返回

如果给定类型使用 SerializePropertyNamesAsCamelCaseAttribute 进行批注,则为 true,否则为 false。

适用于

IsDefinedOnType<T>()

Source:
SerializePropertyNamesAsCamelCaseAttribute.cs

指示给定类型是否使用 SerializePropertyNamesAsCamelCaseAttribute 进行批注。

public static bool IsDefinedOnType<T> ();
static member IsDefinedOnType : unit -> bool
Public Shared Function IsDefinedOnType(Of T) () As Boolean

类型参数

T

要测试的类型。

返回

如果给定类型使用 SerializePropertyNamesAsCamelCaseAttribute 进行批注,则为 true,否则为 false。

适用于