CollectedFile Class
Contains a file collected for the FileCollection endpoint.
Namespace: Microsoft.ConfigurationManagement.Messaging.Messages
Assembly: Microsoft.ConfigurationManagement.Messaging (in Microsoft.ConfigurationManagement.Messaging.dll)
Inheritance Hierarchy
System.Object
Microsoft.ConfigurationManagement.Messaging.Messages.InventoryReportBodyElement
Microsoft.ConfigurationManagement.Messaging.Messages.CollectedFile
Syntax
[SerializableAttribute]
public sealed class CollectedFile : InventoryReportBodyElement
[SerializableAttribute]
public ref class CollectedFile sealed : InventoryReportBodyElement
<SerializableAttribute>
Public NotInheritable Class CollectedFile
Inherits InventoryReportBodyElement
Constructors
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. |
Properties
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. |
Methods
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(Byte[]) | Sets the body of the file. |
![]() |
ToString() | (Inherited from Object.) |
Thread Safety
Any public static ( Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
See Also
Microsoft.ConfigurationManagement.Messaging.Messages Namespace
Return to top