IModelElement.GetRelationship 方法 (ModelRelationshipClass)
使用提供的元数据返回所请求的关系。
命名空间: Microsoft.Data.Schema.SchemaModel
程序集: Microsoft.Data.Schema(在 Microsoft.Data.Schema.dll 中)
语法
声明
Function GetRelationship ( _
relationshipClass As ModelRelationshipClass _
) As IModelRelationship
IModelRelationship GetRelationship(
ModelRelationshipClass relationshipClass
)
IModelRelationship^ GetRelationship(
ModelRelationshipClass^ relationshipClass
)
abstract GetRelationship :
relationshipClass:ModelRelationshipClass -> IModelRelationship
function GetRelationship(
relationshipClass : ModelRelationshipClass
) : IModelRelationship
参数
- relationshipClass
类型:Microsoft.Data.Schema.SchemaModel.ModelRelationshipClass
一个 IModelRelationship 元数据类。
返回值
类型:Microsoft.Data.Schema.SchemaModel.IModelRelationship
一个 IModelRelationship 对象。
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关更多信息,请参见通过部分受信任的代码使用库。