Delen via


TSqlObject.GetReferenced Method (DacQueryScopes)

Gets all referenced objects 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 ( _
    queryScopes As DacQueryScopes _
) As IEnumerable(Of TSqlObject)
'Usage
Dim instance As TSqlObject 
Dim queryScopes As DacQueryScopes 
Dim returnValue As IEnumerable(Of TSqlObject)

returnValue = instance.GetReferenced(queryScopes)
public IEnumerable<TSqlObject> GetReferenced(
    DacQueryScopes queryScopes
)
public:
IEnumerable<TSqlObject^>^ GetReferenced(
    DacQueryScopes queryScopes
)
member GetReferenced : 
        queryScopes:DacQueryScopes -> IEnumerable<TSqlObject> 
public function GetReferenced(
    queryScopes : DacQueryScopes
) : IEnumerable<TSqlObject>

Parameters

Return Value

Type: System.Collections.Generic.IEnumerable<TSqlObject>
TSqlObject referenced by this object.

Remarks

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

See Also

Reference

TSqlObject Class

GetReferenced Overload

Microsoft.SqlServer.Dac.Model Namespace