Win32_OfflineFilesItem class

Represents a single item in the Offline Files cache. The item may be a server, share, directory or file.

Syntax

class Win32_OfflineFilesItem
{
  string                        ItemPath;
  string                        ParentItemPath;
  string                        ItemName;
  uint32                        ItemType;
  Win32_OfflineFilesFileSysInfo FileSysInfo;
  Win32_OfflineFilesPinInfo     PinInfo;
  Win32_OfflineChangeInfo       ChangeInfo;
  Win32_OfflineConnectionInfo   ConnectionInfo;
  Win32_OfflineSuspendInfo      SuspendInfo;
  boolean                       Encrypted;
  boolean                       Sparse;
};

Members

The Win32_OfflineFilesItem class has these types of members:

Properties

The Win32_OfflineFilesItem class has these properties.

ChangeInfo
Data type: Win32_OfflineChangeInfo
Access type: Read-only

A Win32_OfflineFilesChangeInfo object that contains the change information for the item. Applicable to share, directory, and file items.

ConnectionInfo
Data type: Win32_OfflineConnectionInfo
Access type: Read-only

A Win32_OfflineFilesConnectionInfo object that contains the connection information for the item. Applicable to share, directory, and file items.

Encrypted
Data type: boolean
Access type: Read-only

TRUE if the item is encrypted in the Offline Files cache, or FALSE otherwise. This property is applicable only to file items. Server, share, and directory items will always report a value of FALSE for this property. Inspect the ItemType property to determine the type of an item.

FileSysInfo
Data type: Win32_OfflineFilesFileSysInfo
Access type: Read-only

A Win32_OfflineFilesFileSysInfo object that contains the file system information for the item. Applicable to directory and file items.

ItemName
Data type: string
Access type: Read-only
Qualifiers: Not_Null

The file system name of the item, not including the directory path. For example, the UNC path "\\server\share\directory\file.ext" contains the following elements:

Item TypeExample
File"file.ext"
Directory"directory"
Share"share"
Server"server"

 

ItemPath
Data type: string
Access type: Read-only
Qualifiers: Key, Not_Null

A string that contains the UNC path of the item on the server.

Item TypeExample
File"\\server\share\directory1\directory2\file.ext"
Directory"\\server\share\directory1\directory2"
Share"\\server\share"
Server"\\server"

 

ItemType
Data type: uint32
Access type: Read-only
Qualifiers: Values (File, Directory, Share, Server) , ValueMap (0, 1, 2, 3)

The type of the item: file, directory, share, or server.

ParentItemPath
Data type: string
Access type: Read-only

A string that contains the UNC path of the parent item on the server. The string is empty if the item is a server item.

Item TypeParent Item TypeExample
FileDirectory"\\server\share\directory1\directory2"
DirectoryShare"\\server\share"
ShareServer"\\server"
Servernone""

 

PinInfo
Data type: Win32_OfflineFilesPinInfo
Access type: Read-only

A Win32_OfflineFilesPinInfo object that contains pinned status information for the item. Applicable to share, directory, and file items.

Sparse
Data type: boolean
Access type: Read-only

TRUE if the item is sparsely cached, or FALSE otherwise. A sparsely-cached item exists in the Offline Files cache but not all of its contents are cached. Such items are not available offline. This property is applicable only to File items. Server, Share, and Directory items will always report a value of False for this property. The ItemType property contains the type of the item.

SuspendInfo
Data type: Win32_OfflineSuspendInfo
Access type: Read-only

A Win32_OfflineFilesSuspendInfo object that contains the suspend state information for the item. Applicable to share, directory, and file items.

Requirements

Minimum supported client

Windows Vista

Minimum supported server

Windows Server 2008

Namespace

Root\CIMv2

MOF

OfflineFilesWmiProvider.mof

DLL

CscObj.dll

See also

Offline Files WMI Provider Reference

 

 

Show:
© 2015 Microsoft