特定の ModelRelationshipClass を含むこの TSqlObject によって参照されるオブジェクトに対して、リレーションシップ データを定義する ModelRelationshipInstance を返します。 これには、参照先オブジェクト (存在する場合)、参照先オブジェクトを識別するのに使用される ObjectIdentifier、およびこのリレーションシップに固有のすべてのプロパティが含まれます。 指定した DacQueryScopes スコープ内のオブジェクトのみが返されます。 非複合参照またはシステム参照を返すには、代わりに GetReferencedRelationshipInstances(DacExternalQueryScopes) メソッドを呼び出す必要があります。
名前空間: Microsoft.SqlServer.Dac.Model
アセンブリ: Microsoft.SqlServer.Dac.Extensions (Microsoft.SqlServer.Dac.Extensions.dll)
構文
'宣言
Public Function GetReferencedRelationshipInstances ( _
relationshipType As ModelRelationshipClass, _
queryScopes As DacQueryScopes _
) As IEnumerable(Of ModelRelationshipInstance)
'使用
Dim instance As TSqlObject
Dim relationshipType As ModelRelationshipClass
Dim queryScopes As DacQueryScopes
Dim returnValue As IEnumerable(Of ModelRelationshipInstance)
returnValue = instance.GetReferencedRelationshipInstances(relationshipType, _
queryScopes)
public IEnumerable<ModelRelationshipInstance> GetReferencedRelationshipInstances(
ModelRelationshipClass relationshipType,
DacQueryScopes queryScopes
)
public:
IEnumerable<ModelRelationshipInstance^>^ GetReferencedRelationshipInstances(
ModelRelationshipClass^ relationshipType,
DacQueryScopes queryScopes
)
member GetReferencedRelationshipInstances :
relationshipType:ModelRelationshipClass *
queryScopes:DacQueryScopes -> IEnumerable<ModelRelationshipInstance>
public function GetReferencedRelationshipInstances(
relationshipType : ModelRelationshipClass,
queryScopes : DacQueryScopes
) : IEnumerable<ModelRelationshipInstance>
パラメーター
- relationshipType
型: Microsoft.SqlServer.Dac.Model.ModelRelationshipClass
クエリの対象となるリレーションシップ クラスを定義する ModelRelationshipClass
- queryScopes
型: Microsoft.SqlServer.Dac.Model.DacQueryScopes
スコープ オブジェクトを定義する DacQueryScopes が存在する必要があります。
戻り値
型: System.Collections.Generic.IEnumerable<ModelRelationshipInstance>
この TSqlObject とそれによって参照されるオブジェクト間のリレーションシップを定義する ModelRelationshipInstance
説明
要素が TSqlModel に存在しない場合は、Object フィールドが null になることがあります。 このような場合は、参照先オブジェクトに関する情報をクエリするために、ObjectName フィールドを使用できます。