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