パートナー化されているナビゲーション プロパティのプライマリ End を取得します。このとき、プリンシパル End が存在する場合はこれを選択し、存在しない場合は安定した任意の選択を行います。
名前空間: Microsoft.Data.Edm.Csdl
アセンブリ: Microsoft.Data.Edm (Microsoft.Data.Edm.dll)
構文
'宣言
<ExtensionAttribute> _
Public Shared Function GetPrimary ( _
property As IEdmNavigationProperty _
) As IEdmNavigationProperty
'使用
Dim property As IEdmNavigationProperty
Dim returnValue As IEdmNavigationProperty
returnValue = property.GetPrimary()
public static IEdmNavigationProperty GetPrimary(
this IEdmNavigationProperty property
)
[ExtensionAttribute]
public:
static IEdmNavigationProperty^ GetPrimary(
IEdmNavigationProperty^ property
)
static member GetPrimary :
property:IEdmNavigationProperty -> IEdmNavigationProperty
public static function GetPrimary(
property : IEdmNavigationProperty
) : IEdmNavigationProperty
パラメーター
- property
型: Microsoft.Data.Edm.IEdmNavigationProperty
ナビゲーション プロパティ。
戻り値
型: Microsoft.Data.Edm.IEdmNavigationProperty
ナビゲーション プロパティとそのパートナーとの間のプライマリ End。
使用に関するメモ
Visual Basic および C# では、このメソッドを型 IEdmNavigationProperty の任意のオブジェクトのインスタンス メソッドとして呼び出すことができます。このメソッドを呼び出すためにインスタンス メソッドの構文を使う場合は、最初のパラメーターを省略してください。詳細については、「https://msdn.microsoft.com/ja-jp/library/bb384936(v=vs.103)」または「https://msdn.microsoft.com/ja-jp/library/bb383977(v=vs.103)」を参照してください。