获取元素类型。
命名空间: Microsoft.Data.Edm
程序集: Microsoft.Data.Edm(在 Microsoft.Data.Edm.dll 中)
语法
声明
<ExtensionAttribute> _
Public Shared Function ElementType ( _
type As IEdmCollectionTypeReference _
) As IEdmTypeReference
用法
Dim type As IEdmCollectionTypeReference
Dim returnValue As IEdmTypeReference
returnValue = type.ElementType()
public static IEdmTypeReference ElementType(
this IEdmCollectionTypeReference type
)
[ExtensionAttribute]
public:
static IEdmTypeReference^ ElementType(
IEdmCollectionTypeReference^ type
)
static member ElementType :
type:IEdmCollectionTypeReference -> IEdmTypeReference
public static function ElementType(
type : IEdmCollectionTypeReference
) : IEdmTypeReference
参数
- type
类型:Microsoft.Data.Edm.IEdmCollectionTypeReference
对集合类型的引用。
返回值
类型:Microsoft.Data.Edm.IEdmTypeReference
元素类型。
用法说明
在 Visual Basic 和 C# 中,您可以对 IEdmCollectionTypeReference 类型的任何对象将此方法作为实例方法调用。在您使用实例方法语法调用此方法时,将忽略第一个参数。有关详细信息,请参阅https://msdn.microsoft.com/zh-cn/library/bb384936(v=vs.103)或https://msdn.microsoft.com/zh-cn/library/bb383977(v=vs.103)。