Share via


FileInformation.IsOfType(StorageItemTypes) 方法

定义

确定加载的 StorageFile 是否为指定类型。

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 是指定的类型;否则为 false。

实现

适用于