查找具有指定类型和名称的属性。
命名空间: Microsoft.Data.Edm
程序集: Microsoft.Data.Edm(在 Microsoft.Data.Edm.dll 中)
语法
声明
<ExtensionAttribute> _
Public Shared Function FindProperty ( _
type As IEdmStructuredTypeReference, _
name As String _
) As IEdmProperty
用法
Dim type As IEdmStructuredTypeReference
Dim name As String
Dim returnValue As IEdmProperty
returnValue = type.FindProperty(name)
public static IEdmProperty FindProperty(
this IEdmStructuredTypeReference type,
string name
)
[ExtensionAttribute]
public:
static IEdmProperty^ FindProperty(
IEdmStructuredTypeReference^ type,
String^ name
)
static member FindProperty :
type:IEdmStructuredTypeReference *
name:string -> IEdmProperty
public static function FindProperty(
type : IEdmStructuredTypeReference,
name : String
) : IEdmProperty
参数
- type
类型:Microsoft.Data.Edm.IEdmStructuredTypeReference
对结构化类型的引用。
- name
类型:System.String
要查找的属性的名称。
返回值
类型:Microsoft.Data.Edm.IEdmProperty
所找到的属性,否则为 null。
用法说明
在 Visual Basic 和 C# 中,您可以对 IEdmStructuredTypeReference 类型的任何对象将此方法作为实例方法调用。在您使用实例方法语法调用此方法时,将忽略第一个参数。有关详细信息,请参阅https://msdn.microsoft.com/zh-cn/library/bb384936(v=vs.103)或https://msdn.microsoft.com/zh-cn/library/bb383977(v=vs.103)。