搜索具有指定类型和名称的导航属性。
命名空间: Microsoft.Data.Edm
程序集: Microsoft.Data.Edm(在 Microsoft.Data.Edm.dll 中)
语法
声明
<ExtensionAttribute> _
Public Shared Function FindNavigationProperty ( _
type As IEdmEntityTypeReference, _
name As String _
) As IEdmNavigationProperty
用法
Dim type As IEdmEntityTypeReference
Dim name As String
Dim returnValue As IEdmNavigationProperty
returnValue = type.FindNavigationProperty(name)
public static IEdmNavigationProperty FindNavigationProperty(
this IEdmEntityTypeReference type,
string name
)
[ExtensionAttribute]
public:
static IEdmNavigationProperty^ FindNavigationProperty(
IEdmEntityTypeReference^ type,
String^ name
)
static member FindNavigationProperty :
type:IEdmEntityTypeReference *
name:string -> IEdmNavigationProperty
public static function FindNavigationProperty(
type : IEdmEntityTypeReference,
name : String
) : IEdmNavigationProperty
参数
- type
类型:Microsoft.Data.Edm.IEdmEntityTypeReference
对实体类型的引用。
- name
类型:System.String
所查找的导航属性的名称。
返回值
类型:Microsoft.Data.Edm.IEdmNavigationProperty
请求的导航属性。
用法说明
在 Visual Basic 和 C# 中,您可以对 IEdmEntityTypeReference 类型的任何对象将此方法作为实例方法调用。在您使用实例方法语法调用此方法时,将忽略第一个参数。有关详细信息,请参阅https://msdn.microsoft.com/zh-cn/library/bb384936(v=vs.103)或https://msdn.microsoft.com/zh-cn/library/bb383977(v=vs.103)。