StorageFile.IsOfType(StorageItemTypes) 方法

定义

确定当前 StorageFile 是否与指定的 StorageItemTypes 值匹配。

public:
 virtual bool IsOfType(StorageItemTypes type) = IsOfType;
bool IsOfType(StorageItemTypes const& type);
public bool IsOfType(StorageItemTypes type);
function isOfType(type)
Public Function IsOfType (type As StorageItemTypes) As Boolean

参数

type
StorageItemTypes

要匹配的值。

返回

Boolean

bool

如果 StorageFile 与指定值匹配,则为 True;否则为 false。

实现

适用于