エンティティ セットのナビゲーション ターゲットに対してシリアル化されるアソシエーションに関連付けられている注釈を取得します。
名前空間: Microsoft.Data.Edm.Csdl
アセンブリ: Microsoft.Data.Edm (Microsoft.Data.Edm.dll)
構文
'宣言
<ExtensionAttribute> _
Public Shared Sub GetAssociationSetAnnotations ( _
model As IEdmModel, _
entitySet As IEdmEntitySet, _
property As IEdmNavigationProperty, _
<OutAttribute> ByRef annotations As IEnumerable(Of IEdmDirectValueAnnotation), _
<OutAttribute> ByRef end1Annotations As IEnumerable(Of IEdmDirectValueAnnotation), _
<OutAttribute> ByRef end2Annotations As IEnumerable(Of IEdmDirectValueAnnotation) _
)
'使用
Dim model As IEdmModel
Dim entitySet As IEdmEntitySet
Dim property As IEdmNavigationProperty
Dim annotations As IEnumerable(Of IEdmDirectValueAnnotation)
Dim end1Annotations As IEnumerable(Of IEdmDirectValueAnnotation)
Dim end2Annotations As IEnumerable(Of IEdmDirectValueAnnotation)
model.GetAssociationSetAnnotations(entitySet, _
property, annotations, end1Annotations, _
end2Annotations)
public static void GetAssociationSetAnnotations(
this IEdmModel model,
IEdmEntitySet entitySet,
IEdmNavigationProperty property,
out IEnumerable<IEdmDirectValueAnnotation> annotations,
out IEnumerable<IEdmDirectValueAnnotation> end1Annotations,
out IEnumerable<IEdmDirectValueAnnotation> end2Annotations
)
[ExtensionAttribute]
public:
static void GetAssociationSetAnnotations(
IEdmModel^ model,
IEdmEntitySet^ entitySet,
IEdmNavigationProperty^ property,
[OutAttribute] IEnumerable<IEdmDirectValueAnnotation^>^% annotations,
[OutAttribute] IEnumerable<IEdmDirectValueAnnotation^>^% end1Annotations,
[OutAttribute] IEnumerable<IEdmDirectValueAnnotation^>^% end2Annotations
)
static member GetAssociationSetAnnotations :
model:IEdmModel *
entitySet:IEdmEntitySet *
property:IEdmNavigationProperty *
annotations:IEnumerable<IEdmDirectValueAnnotation> byref *
end1Annotations:IEnumerable<IEdmDirectValueAnnotation> byref *
end2Annotations:IEnumerable<IEdmDirectValueAnnotation> byref -> unit
public static function GetAssociationSetAnnotations(
model : IEdmModel,
entitySet : IEdmEntitySet,
property : IEdmNavigationProperty,
annotations : IEnumerable<IEdmDirectValueAnnotation>,
end1Annotations : IEnumerable<IEdmDirectValueAnnotation>,
end2Annotations : IEnumerable<IEdmDirectValueAnnotation>
)
パラメーター
- model
型: Microsoft.Data.Edm.IEdmModel
エンティティ セットを含むモデル。
- entitySet
型: Microsoft.Data.Edm.IEdmEntitySet
エンティティ セット。
- property
型: Microsoft.Data.Edm.IEdmNavigationProperty
ナビゲーション プロパティ。
- annotations
型: System.Collections.Generic.IEnumerable<IEdmDirectValueAnnotation>%
アソシエーション セットの注釈。
- end1Annotations
型: System.Collections.Generic.IEnumerable<IEdmDirectValueAnnotation>%
アソシエーション セット End 1 の注釈。
- end2Annotations
型: System.Collections.Generic.IEnumerable<IEdmDirectValueAnnotation>%
アソシエーション セット End 2 の注釈。
使用に関するメモ
Visual Basic および C# では、このメソッドを型 IEdmModel の任意のオブジェクトのインスタンス メソッドとして呼び出すことができます。このメソッドを呼び出すためにインスタンス メソッドの構文を使う場合は、最初のパラメーターを省略してください。詳細については、「https://msdn.microsoft.com/ja-jp/library/bb384936(v=vs.103)」または「https://msdn.microsoft.com/ja-jp/library/bb383977(v=vs.103)」を参照してください。