DataServiceProviderMethods.TypeIs 方法
判斷此值是否屬於指定的類型。
命名空間: System.Data.Services.Providers
組件: Microsoft.Data.Services (在 Microsoft.Data.Services.dll 中)
語法
'宣告
Public Shared Function TypeIs ( _
value As Object, _
type As ResourceType _
) As Boolean
'用途
Dim value As Object
Dim type As ResourceType
Dim returnValue As Boolean
returnValue = DataServiceProviderMethods.TypeIs(value, _
type)
public static bool TypeIs(
Object value,
ResourceType type
)
public:
static bool TypeIs(
Object^ value,
ResourceType^ type
)
static member TypeIs :
value:Object *
type:ResourceType -> bool
public static function TypeIs(
value : Object,
type : ResourceType
) : boolean
參數
- value
型別:System.Object
要檢查的值。
- type
型別:System.Data.Services.Providers.ResourceType
要進行比較的 ResourceType。
傳回值
型別:System.Boolean
如果此值具有指定的類型,則為 true,否則為 false。