ExtensionMethods.FindNavigationProperty 方法
搜尋具有指定之型別和名稱的導覽屬性。
命名空間: 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-tw/library/bb384936(v=vs.103) 或 https://msdn.microsoft.com/zh-tw/library/bb383977(v=vs.103)。