次の方法で共有


TSqlObject.GetReferencedRelationshipInstances メソッド (ModelRelationshipClass)

特定の ModelRelationshipClass を含むこの TSqlObject によって参照されるオブジェクトに対して、リレーションシップ データを定義する ModelRelationshipInstance を返します。 これには、参照先オブジェクト (存在する場合)、参照先オブジェクトを識別するのに使用される ObjectIdentifier、およびこのリレーションシップに固有のすべてのプロパティが含まれます。 Default スコープ内のオブジェクトのみが返されます。

名前空間:  Microsoft.SqlServer.Dac.Model
アセンブリ:  Microsoft.SqlServer.Dac.Extensions (Microsoft.SqlServer.Dac.Extensions.dll)

構文

'宣言
Public Function GetReferencedRelationshipInstances ( _
    relationshipType As ModelRelationshipClass _
) As IEnumerable(Of ModelRelationshipInstance)
'使用
Dim instance As TSqlObject 
Dim relationshipType As ModelRelationshipClass 
Dim returnValue As IEnumerable(Of ModelRelationshipInstance)

returnValue = instance.GetReferencedRelationshipInstances(relationshipType)
public IEnumerable<ModelRelationshipInstance> GetReferencedRelationshipInstances(
    ModelRelationshipClass relationshipType
)
public:
IEnumerable<ModelRelationshipInstance^>^ GetReferencedRelationshipInstances(
    ModelRelationshipClass^ relationshipType
)
member GetReferencedRelationshipInstances : 
        relationshipType:ModelRelationshipClass -> IEnumerable<ModelRelationshipInstance> 
public function GetReferencedRelationshipInstances(
    relationshipType : ModelRelationshipClass
) : IEnumerable<ModelRelationshipInstance>

パラメーター

戻り値

型: System.Collections.Generic.IEnumerable<ModelRelationshipInstance>
この TSqlObject とそれによって参照されるオブジェクト間のリレーションシップを定義する ModelRelationshipInstance

説明

要素が TSqlModel に存在しない場合は、Object フィールドが null になることがあります。 このような場合は、参照先オブジェクトに関する情報をクエリするために、ObjectName フィールドを使用できます。

関連項目

参照

TSqlObject クラス

GetReferencedRelationshipInstances オーバーロード

Microsoft.SqlServer.Dac.Model 名前空間