TSqlObject.GetReferenced Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
GetReferenced() |
Gets all referenced objects within the Default scope |
GetReferenced(DacQueryScopes) |
Gets all referenced objects within a given DacQueryScopes scope. |
GetReferenced(ModelRelationshipClass) |
Gets referenced objects for a given ModelRelationshipClass, where objects are within the Default scope |
GetReferenced(ModelRelationshipClass, DacQueryScopes) |
Gets referenced objects for a given ModelRelationshipClass, where objects are within a given DacQueryScopes scope. |
GetReferenced()
Gets all referenced objects within the Default scope
public System.Collections.Generic.IEnumerable<Microsoft.SqlServer.Dac.Model.TSqlObject> GetReferenced ();
member this.GetReferenced : unit -> seq<Microsoft.SqlServer.Dac.Model.TSqlObject>
Public Function GetReferenced () As IEnumerable(Of TSqlObject)
Returns
TSqlObjects 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.
Applies to
GetReferenced(DacQueryScopes)
Gets all referenced objects within a given DacQueryScopes scope.
public System.Collections.Generic.IEnumerable<Microsoft.SqlServer.Dac.Model.TSqlObject> GetReferenced (Microsoft.SqlServer.Dac.Model.DacQueryScopes queryScopes);
member this.GetReferenced : Microsoft.SqlServer.Dac.Model.DacQueryScopes -> seq<Microsoft.SqlServer.Dac.Model.TSqlObject>
Public Function GetReferenced (queryScopes As DacQueryScopes) As IEnumerable(Of TSqlObject)
Parameters
- queryScopes
- DacQueryScopes
DacQueryScopes defining the scope objects must exist in.
Returns
TSqlObjects 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.
Applies to
GetReferenced(ModelRelationshipClass)
Gets referenced objects for a given ModelRelationshipClass, where objects are within the Default scope
public System.Collections.Generic.IEnumerable<Microsoft.SqlServer.Dac.Model.TSqlObject> GetReferenced (Microsoft.SqlServer.Dac.Model.ModelRelationshipClass relationshipType);
member this.GetReferenced : Microsoft.SqlServer.Dac.Model.ModelRelationshipClass -> seq<Microsoft.SqlServer.Dac.Model.TSqlObject>
Public Function GetReferenced (relationshipType As ModelRelationshipClass) As IEnumerable(Of TSqlObject)
Parameters
- relationshipType
- ModelRelationshipClass
ModelRelationshipClass defining the relationship class to query for
Returns
TSqlObjects referenced by this object for a given ModelRelationshipClass
Remarks
References to elements not in the TSqlModel are not returned. Use GetReferencedRelationshipInstances() for a listing of all possible referenced elements.
Applies to
GetReferenced(ModelRelationshipClass, DacQueryScopes)
Gets referenced objects for a given ModelRelationshipClass, where objects are within a given DacQueryScopes scope.
public System.Collections.Generic.IEnumerable<Microsoft.SqlServer.Dac.Model.TSqlObject> GetReferenced (Microsoft.SqlServer.Dac.Model.ModelRelationshipClass relationshipType, Microsoft.SqlServer.Dac.Model.DacQueryScopes queryScopes);
member this.GetReferenced : Microsoft.SqlServer.Dac.Model.ModelRelationshipClass * Microsoft.SqlServer.Dac.Model.DacQueryScopes -> seq<Microsoft.SqlServer.Dac.Model.TSqlObject>
Public Function GetReferenced (relationshipType As ModelRelationshipClass, queryScopes As DacQueryScopes) As IEnumerable(Of TSqlObject)
Parameters
- relationshipType
- ModelRelationshipClass
ModelRelationshipClass defining the relationship to query for
- queryScopes
- DacQueryScopes
DacQueryScopes defining the scope objects must exist in.
Returns
TSqlObjects referenced by this object for a given ModelRelationshipClass
Remarks
References to elements not in the TSqlModel are not returned. Use GetReferencedRelationshipInstances() for a listing of all possible referenced elements.