EdmTypeSemantics.AsRow 方法
如果此參考是資料列型別,則傳回型別定義的有效資料列型別參考, 否則傳回錯誤的資料列型別參考。
命名空間: Microsoft.Data.Edm
組件: Microsoft.Data.Edm (在 Microsoft.Data.Edm.dll 中)
語法
'宣告
<ExtensionAttribute> _
Public Shared Function AsRow ( _
type As IEdmTypeReference _
) As IEdmRowTypeReference
'用途
Dim type As IEdmTypeReference
Dim returnValue As IEdmRowTypeReference
returnValue = type.AsRow()
public static IEdmRowTypeReference AsRow(
this IEdmTypeReference type
)
[ExtensionAttribute]
public:
static IEdmRowTypeReference^ AsRow(
IEdmTypeReference^ type
)
static member AsRow :
type:IEdmTypeReference -> IEdmRowTypeReference
public static function AsRow(
type : IEdmTypeReference
) : IEdmRowTypeReference
參數
- type
型別:Microsoft.Data.Edm.IEdmTypeReference
呼叫物件的參考。
傳回值
型別:Microsoft.Data.Edm.IEdmRowTypeReference
如果此參考的定義是資料列型別,則為有效的資料列型別參考,否則為錯誤的資料列型別參考。
使用注意事項
在 Visual Basic 及 C# 中,您可以在任何型別 IEdmTypeReference 的物件上將這個方法做為執行個體方法呼叫。使用執行個體方法語法呼叫這個方法時,請省略第一個參數。如需詳細資訊,請參閱 https://msdn.microsoft.com/zh-tw/library/bb384936(v=vs.103) 或 https://msdn.microsoft.com/zh-tw/library/bb383977(v=vs.103)。