CollectedFile Class
Contains a file collected for the FileCollection endpoint.
Assembly: Microsoft.ConfigurationManagement.Messaging (in Microsoft.ConfigurationManagement.Messaging.dll)
Microsoft.ConfigurationManagement.Messaging.Messages::InventoryReportBodyElement
Microsoft.ConfigurationManagement.Messaging.Messages::CollectedFile
| Name | Description | |
|---|---|---|
![]() | CollectedFile() | Initializes a new instance of the CollectedFile class. |
![]() | CollectedFile(FileInfo^) | Initializes a new instance of the CollectedFile class. |
![]() | CollectedFile(FileInfo^, Boolean) | Initializes a new instance of the CollectedFile class. |
![]() | CollectedFile(String^) | Initializes a new instance of the CollectedFile class. |
| Name | Description | |
|---|---|---|
![]() | ContentType | Gets or sets the content type. |
![]() | FileName | Gets or sets the name of the file. |
![]() | FilePath | Gets or sets the on-disk path to the file. |
![]() | FileSize | Gets or sets the file size. |
![]() | Id | Gets or sets the ID sequence for the file. This property should not be set manually. Use ConfigMgrFileCollectionMessage instead. |
![]() | LastWriteDate | Gets or sets the last write date. |
![]() | LastWriteDateString | Gets or sets the last write date as SMSTime. This property is only for serialization. Use LastWriteDate instead. |
| Name | Description | |
|---|---|---|
![]() | Equals(Object^) | (Inherited from Object.) |
![]() | GetFileBody() | Gets the body of the file. |
![]() | GetFileInfo(String^) | Initializes the object with the file. |
![]() | GetHashCode() | (Inherited from Object.) |
![]() | GetType() | (Inherited from Object.) |
![]() | SetFileBody(array<Byte>^) | Sets the body of the file. |
![]() | ToString() | (Inherited from Object.) |
Any public static ( Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

