Freigeben über


TSqlObject.GetReferenced-Methode (ModelRelationshipClass, DacQueryScopes)

Gets referenced objects for a given ModelRelationshipClass, where objects are within a given DacQueryScopes scope.

Namespace:  Microsoft.SqlServer.Dac.Model
Assembly:  Microsoft.SqlServer.Dac.Extensions (in Microsoft.SqlServer.Dac.Extensions.dll)

Syntax

'Declaration
Public Function GetReferenced ( _
    relationshipType As ModelRelationshipClass, _
    queryScopes As DacQueryScopes _
) As IEnumerable(Of TSqlObject)
'Usage
Dim instance As TSqlObject 
Dim relationshipType As ModelRelationshipClass 
Dim queryScopes As DacQueryScopes 
Dim returnValue As IEnumerable(Of TSqlObject)

returnValue = instance.GetReferenced(relationshipType, _
    queryScopes)
public IEnumerable<TSqlObject> GetReferenced(
    ModelRelationshipClass relationshipType,
    DacQueryScopes queryScopes
)
public:
IEnumerable<TSqlObject^>^ GetReferenced(
    ModelRelationshipClass^ relationshipType, 
    DacQueryScopes queryScopes
)
member GetReferenced : 
        relationshipType:ModelRelationshipClass * 
        queryScopes:DacQueryScopes -> IEnumerable<TSqlObject> 
public function GetReferenced(
    relationshipType : ModelRelationshipClass, 
    queryScopes : DacQueryScopes
) : IEnumerable<TSqlObject>

Parameter

Rückgabewert

Typ: System.Collections.Generic.IEnumerable<TSqlObject>
TSqlObject referenced by this object for a given ModelRelationshipClass

Hinweise

References to elements not in the TSqlModel are not returned. Use GetReferencedRelationshipInstances() for a listing of all possible referenced elements.

Siehe auch

Verweis

TSqlObject Klasse

GetReferenced-Überladung

Microsoft.SqlServer.Dac.Model-Namespace