Share via


PropertyBaseExtensions.IsIndexerProperty(IPropertyBase) 方法

定义

获取一个值,该值指示此是否为索引器属性。 索引器属性是通过实体类上的索引器访问的属性。

public static bool IsIndexerProperty (this Microsoft.EntityFrameworkCore.Metadata.IPropertyBase property);
static member IsIndexerProperty : Microsoft.EntityFrameworkCore.Metadata.IPropertyBase -> bool
<Extension()>
Public Function IsIndexerProperty (property As IPropertyBase) As Boolean

参数

property
IPropertyBase

要检查的属性。

返回

true 如果 属性是索引器属性,则为 ;否则为 false

适用于