TSqlObject.GetReferenced 方法 (ModelRelationshipClass)

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

命名空间:  Microsoft.SqlServer.Dac.Model
程序集:  Microsoft.SqlServer.Dac.Extensions(在 Microsoft.SqlServer.Dac.Extensions.dll 中)

语法

声明
Public Function GetReferenced ( _
    relationshipType As ModelRelationshipClass _
) As IEnumerable(Of TSqlObject)
用法
Dim instance As TSqlObject 
Dim relationshipType As ModelRelationshipClass 
Dim returnValue As IEnumerable(Of TSqlObject)

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

参数

返回值

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

注释

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

请参阅

参考

TSqlObject 类

GetReferenced 重载

Microsoft.SqlServer.Dac.Model 命名空间