获取类型批注的类型术语的属性绑定。
命名空间: Microsoft.Data.Edm
程序集: Microsoft.Data.Edm(在 Microsoft.Data.Edm.dll 中)
语法
声明
<ExtensionAttribute> _
Public Shared Function FindPropertyBinding ( _
annotation As IEdmTypeAnnotation, _
property As IEdmProperty _
) As IEdmPropertyValueBinding
用法
Dim annotation As IEdmTypeAnnotation
Dim property As IEdmProperty
Dim returnValue As IEdmPropertyValueBinding
returnValue = annotation.FindPropertyBinding(property)
public static IEdmPropertyValueBinding FindPropertyBinding(
this IEdmTypeAnnotation annotation,
IEdmProperty property
)
[ExtensionAttribute]
public:
static IEdmPropertyValueBinding^ FindPropertyBinding(
IEdmTypeAnnotation^ annotation,
IEdmProperty^ property
)
static member FindPropertyBinding :
annotation:IEdmTypeAnnotation *
property:IEdmProperty -> IEdmPropertyValueBinding
public static function FindPropertyBinding(
annotation : IEdmTypeAnnotation,
property : IEdmProperty
) : IEdmPropertyValueBinding
参数
- annotation
类型:Microsoft.Data.Edm.Annotations.IEdmTypeAnnotation
要搜索的批注。
- property
类型:Microsoft.Data.Edm.IEdmProperty
要搜索的属性。
返回值
类型:Microsoft.Data.Edm.Annotations.IEdmPropertyValueBinding
类型批注中的属性绑定,如果不存在绑定,则为 null。
用法说明
在 Visual Basic 和 C# 中,您可以对 IEdmTypeAnnotation 类型的任何对象将此方法作为实例方法调用。在您使用实例方法语法调用此方法时,将忽略第一个参数。有关详细信息,请参阅https://msdn.microsoft.com/zh-cn/library/bb384936(v=vs.103)或https://msdn.microsoft.com/zh-cn/library/bb383977(v=vs.103)。