Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
GetItemType Method
Collapse the table of content
Expand the table of content

IOfflineFilesItem::GetItemType method

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

Syntax


HRESULT GetItemType(
  [out] OFFLINEFILES_ITEM_TYPE *pItemType
);

Parameters

pItemType [out]

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

Minimum supported client

Windows Vista

Minimum supported server

Windows Server 2008

Header

CscObj.h

DLL

CscSvc.dll;
CscObj.dll

See also

IOfflineFilesItem

 

 

Show:
© 2015 Microsoft