Share via


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
System_CAPS_pubmethod CollectedFile()

Initializes a new instance of the CollectedFile class.

System_CAPS_pubmethod CollectedFile(FileInfo)

Initializes a new instance of the CollectedFile class.

System_CAPS_pubmethod CollectedFile(FileInfo, Boolean)

Initializes a new instance of the CollectedFile class.

System_CAPS_pubmethod CollectedFile(String)

Initializes a new instance of the CollectedFile class.

Properties

Name Description
System_CAPS_pubproperty ContentType

Gets or sets the content type.

System_CAPS_pubproperty FileName

Gets or sets the name of the file.

System_CAPS_pubproperty FilePath

Gets or sets the on-disk path to the file.

System_CAPS_pubproperty FileSize

Gets or sets the file size.

System_CAPS_pubproperty Id

Gets or sets the ID sequence for the file. This property should not be set manually. Use ConfigMgrFileCollectionMessage instead.

System_CAPS_pubproperty LastWriteDate

Gets or sets the last write date.

System_CAPS_pubproperty LastWriteDateString

Gets or sets the last write date as SMSTime. This property is only for serialization. Use LastWriteDate instead.

Methods

Name Description
System_CAPS_pubmethod Equals(Object)

(Inherited from Object.)

System_CAPS_pubmethod GetFileBody()

Gets the body of the file.

System_CAPS_pubmethod GetFileInfo(String)

Initializes the object with the file.

System_CAPS_pubmethod GetHashCode()

(Inherited from Object.)

System_CAPS_pubmethod GetType()

(Inherited from Object.)

System_CAPS_pubmethod SetFileBody(Byte[])

Sets the body of the file.

System_CAPS_pubmethod 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