IOfflineFilesItem::GetItemType method (cscobj.h)

Returns a type code identifying the type of the item: server, share, directory, or file.

Syntax

HRESULT GetItemType(
  [out] OFFLINEFILES_ITEM_TYPE *pItemType
);

Parameters

[out] pItemType

Receives an OFFLINEFILES_ITEM_TYPE enumeration value that indicates the type of the item.

Return value

Returns S_OK if successful, or an error value otherwise.

Remarks

Another way to determine an item's type is to query the item for one of the following type-specific interfaces:

IOfflineFilesDirectoryItem IOfflineFilesFileItem IOfflineFilesServerItem IOfflineFilesShareItem If the call to QueryInterface succeeds, the item is of the requested type. An item can be of only one of the above types.

Requirements

Requirement Value
Minimum supported client Windows Vista
Minimum supported server Windows Server 2008
Target Platform Windows
Header cscobj.h
DLL CscSvc.dll; CscObj.dll

See also

IOfflineFilesItem