Share via


ConfigMgrSoftwareInventoryMessage Methods

 

Namespace:   Microsoft.ConfigurationManagement.Messaging.Messages
Assembly:  Microsoft.ConfigurationManagement.Messaging (in Microsoft.ConfigurationManagement.Messaging.dll)

Methods

Name Description
System_CAPS_pubmethod AddCertificateToMessage(MessageCertificateX509, CertificatePurposes)

Adds a certificate to the message. (Inherited from Message.)

System_CAPS_pubmethod AddCertificateToMessage(MessageCertificateX509, CertificatePurposes, Boolean)

Adds a certificate to a message with the option to disable any intelligence. (Inherited from Message.)

System_CAPS_pubmethod AddDirectoryFilesToInventory(String, String, Boolean)

Adds all the files in a directory to a software inventory. Ignores handled security exceptions.

System_CAPS_pubmethod AddDirectoryFilesToInventory(String, String, Boolean, Boolean)

Adds all the files in a directory to a software inventory.

System_CAPS_pubmethod AddFileSystemFileInstanceToInventory(InventoryInstanceElementFileSystemFile)

Adds an existing InventoryInstanceElementFileSystemFile to the software inventory.

System_CAPS_pubmethod AddFileToInventory(String)

Adds a file to the software inventory.

System_CAPS_pubmethod BuildInventoryMessage(Collection<InventoryReportBodyElement>)

Constructs an inventory report from an InventoryReportBodyElement object array. (Inherited from ConfigMgrInventoryMessage.)

System_CAPS_pubmethod BuildInventoryMessage(Collection<InventoryReportBodyElement>, Boolean)

Constructs an inventory report from an InventoryReportBodyElement object array. (Inherited from ConfigMgrInventoryMessage.)

System_CAPS_pubmethod BuildInventoryMessage(InventoryReportBodyElement)

Constructs an inventory report from an InventoryReportBodyElement object by using default settings. (Inherited from ConfigMgrInventoryMessage.)

System_CAPS_pubmethod BuildInventoryMessage(InventoryReportBodyElement, Boolean)

Constructs an inventory report from an InventoryReportBodyElement object by using default settings. (Inherited from ConfigMgrInventoryMessage.)

System_CAPS_pubmethod ClearSoftwareInventoryFiles()

Clears the internal list of software inventory files.

System_CAPS_pubmethod CloneBase()

Creates a clone of a message.

Important: This method is not the same as nor does it behave the same as Clone. That is why this message type does not implement ICloneable. It is not recommended that any code outside of Messaging core code use this function without understanding how it works, what its limitations are, and why it's being used.

Note: If you're considering this method, ensure that you have evaluated CloneByRef which you might want to use instead. (Inherited from Message.)

System_CAPS_pubmethod CloneByRef(IMessage)

Clones a reference of a message. Use this method to create a copy of an existing message, especially one of a different type, into this message.

Important: This method is not the same as nor does it behave the same as Clone. That is why this message type does not implement ICloneable. It is not recommended that any code outside of Messaging core code use this function without understanding how it works, what its limitations are, and why it's being used. (Inherited from Message.)

System_CAPS_pubmethod CloneByRef(IMessage, MessageCloneOptions)

Clones a reference of a message. Use this method to create a copy of an existing message, especially one of a different type, into this message.

Important: This method is not the same as nor does it behave the same as Clone. That is why this message type does not implement ICloneable. It is not recommended that any code outside of Messaging core code use this function without understanding how it works, what its limitations are, and why it's being used. (Inherited from Message.)

System_CAPS_pubmethod DeserializeMessageBody()

Internal handler for deserializing a payload into its object format. This method should only be called by external code under exceptional circumstances. (Inherited from Message.)

System_CAPS_pubmethod Discover()

Performs discovery. (Inherited from ConfigMgrInventoryMessage.)

System_CAPS_pubmethod Equals(Object)

(Inherited from Object.)

System_CAPS_pubmethod GetCertificateFromMessage(CertificatePurposes)

Retrieves the X509-based certificate from a message. (Inherited from Message.)

System_CAPS_pubmethod GetHashCode()

(Inherited from Object.)

System_CAPS_pubmethod GetType()

(Inherited from Object.)

System_CAPS_pubmethod OnDeserialization(Object)

Ensures validity checks are never performed on deserialization. (Inherited from Message.)

System_CAPS_pubmethod PostSendActions(IMessageSender, Boolean)

Actions that run after a message is sent. This is an asynchronous action; use with caution. (Inherited from Message.)

System_CAPS_pubmethod PreSendActions()

Actions that run before the message is sent. This operation is synchronous and blocking. (Inherited from Message.)

System_CAPS_pubmethod SendMessage(IMessageSender)

Sends the message using the specified sender.(Inherited from AsynchronousMessage.)

System_CAPS_pubmethod SerializeMessageBody()

Serializes a software inventory message. (Overrides ConfigMgrInventoryMessage.SerializeMessageBody().)

System_CAPS_protmethod SimpleBodyDeserialization<T>()

Helper function that deserializes an object from the existing payload. (Inherited from Message.)

System_CAPS_protmethod SimpleBodyDeserialization<T>(DeserializationArguments)

Helper function that deserializes an object from the existing payload. (Inherited from Message.)

System_CAPS_protmethod SimpleObjectSerialization(Object)

Helper function that serializes an object to a payload. (Inherited from Message.)

System_CAPS_pubmethod ToString()

(Inherited from Object.)

System_CAPS_pubmethod Validate()

Obsolete. Validates that all required message settings are present and meet the requirements. If this method fails, the message will likely fail in being sent or processed by the site or management point. (Inherited from Message.)

System_CAPS_pubmethod Validate(IMessageSender)

Validates that all required message settings are present and meet the requirements. If this validation fails, the message is almost certain to fail in being sent or processed by the site or management point. (Inherited from Message.)

Explicit Interface Implementations

Name Description
System_CAPS_pubinterfaceSystem_CAPS_privmethod IMessage.SendMessage(IMessageSender)

Sends a message by using the specified sender. (Inherited from Message.)

See Also

ConfigMgrSoftwareInventoryMessage Class
Microsoft.ConfigurationManagement.Messaging.Messages Namespace

Return to top