ExtensionMethods.IsOpen 方法
判斷指定的型別是否為開放型別。
命名空間: Microsoft.Data.Edm
組件: Microsoft.Data.Edm (在 Microsoft.Data.Edm.dll 中)
語法
'宣告
<ExtensionAttribute> _
Public Shared Function IsOpen ( _
type As IEdmStructuredTypeReference _
) As Boolean
'用途
Dim type As IEdmStructuredTypeReference
Dim returnValue As Boolean
returnValue = type.IsOpen()
public static bool IsOpen(
this IEdmStructuredTypeReference type
)
[ExtensionAttribute]
public:
static bool IsOpen(
IEdmStructuredTypeReference^ type
)
static member IsOpen :
type:IEdmStructuredTypeReference -> bool
public static function IsOpen(
type : IEdmStructuredTypeReference
) : boolean
參數
- type
型別:Microsoft.Data.Edm.IEdmStructuredTypeReference
結構化型別的參考。
傳回值
型別:System.Boolean
如果指定的型別是開放型別,則為 true,否則為 false。
使用注意事項
在 Visual Basic 及 C# 中,您可以在任何型別 IEdmStructuredTypeReference 的物件上將這個方法做為執行個體方法呼叫。使用執行個體方法語法呼叫這個方法時,請省略第一個參數。如需詳細資訊,請參閱 https://msdn.microsoft.com/zh-tw/library/bb384936(v=vs.103) 或 https://msdn.microsoft.com/zh-tw/library/bb383977(v=vs.103)。