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