DataServiceProviderMethods.TypeIs(Object, ResourceType) 方法

定义

确定值是否为指定类型。

public:
 static bool TypeIs(System::Object ^ value, System::Data::Services::Providers::ResourceType ^ type);
public static bool TypeIs (object value, System.Data.Services.Providers.ResourceType type);
static member TypeIs : obj * System.Data.Services.Providers.ResourceType -> bool
Public Shared Function TypeIs (value As Object, type As ResourceType) As Boolean

参数

value
Object

要检查的值。

type
ResourceType

要进行比较的 ResourceType

返回

如果该值为指定类型,则返回 true;否则,返回 false

适用于