ConfigMgrDataDiscoveryRecordMessage Class
Class used to send discovery data records (DDRs) to a site server management point.
Namespace: Microsoft.ConfigurationManagement.Messaging.Messages
Assembly: Microsoft.ConfigurationManagement.Messaging (in Microsoft.ConfigurationManagement.Messaging.dll)
Inheritance Hierarchy
System.Object
Microsoft.ConfigurationManagement.Messaging.Framework.Message
Microsoft.ConfigurationManagement.Messaging.Framework.AsynchronousMessage
Microsoft.ConfigurationManagement.Messaging.Messages.ConfigMgrInventoryMessage
Microsoft.ConfigurationManagement.Messaging.Messages.ConfigMgrDataDiscoveryRecordMessage
Syntax
[SerializableAttribute]
[MessageClassAttribute(MessageClassAttributeSetting.SigningRequired)]
[ClientReplyEndpointAttribute("MP_DDREndpoint")]
[MessageSupportAttribute(MessageSupportStatus.Supported)]
public sealed class ConfigMgrDataDiscoveryRecordMessage : ConfigMgrInventoryMessage
[SerializableAttribute]
[MessageClassAttribute(MessageClassAttributeSetting::SigningRequired)]
[ClientReplyEndpointAttribute("MP_DDREndpoint")]
[MessageSupportAttribute(MessageSupportStatus::Supported)]
public ref class ConfigMgrDataDiscoveryRecordMessage sealed : ConfigMgrInventoryMessage
<SerializableAttribute>
<MessageClassAttribute(MessageClassAttributeSetting.SigningRequired)>
<ClientReplyEndpointAttribute("MP_DDREndpoint")>
<MessageSupportAttribute(MessageSupportStatus.Supported)>
Public NotInheritable Class ConfigMgrDataDiscoveryRecordMessage
Inherits ConfigMgrInventoryMessage
Constructors
Name | Description | |
---|---|---|
ConfigMgrDataDiscoveryRecordMessage() | Initializes a new instance of the ConfigMgrDataDiscoveryRecordMessage class. |
Properties
Name | Description | |
---|---|---|
ADSiteName | Gets or sets the Active Directory site name. |
|
Attachments | Gets message attachments. (Inherited from Message.) |
|
Body | Gets the message body. This property should not be empty, with limited exceptions.(Inherited from Message.) |
|
ClientEdition | Gets or sets the client edition. |
|
ClientVersion | Gets or sets the client version for the client sending the state message. If you don't set this property, a random version will be set. (Inherited from ConfigMgrInventoryMessage.) |
|
CodePage | Gets or sets the code page for the message. (Inherited from ConfigMgrInventoryMessage.) |
|
DdrInstances | Gets a collection of DDR instances for the inventory body. |
|
DomainName | Gets or sets the NetBIOS name of the domain. |
|
IncludeMachinePublicKey | Gets or sets a value that indicates whether, when the BuildInventoryMessage method is used, a public key will be included in the inventory report. (Inherited from ConfigMgrInventoryMessage.) |
|
InventoryReport | Gets or sets the entire serialized inventory message. The BuildInventoryMessage method should be used to initialize the message; we don't recommend setting everything manually. (Inherited from ConfigMgrInventoryMessage.) |
|
LocaleId | Gets or sets the locale ID for state messages. The default value is the locale ID for the current process. (Inherited from ConfigMgrInventoryMessage.) |
|
MessageId | Gets the internal ID of a message. (Inherited from Message.) |
|
NetBiosName | Gets or sets the NetBIOS name of the computer that generates the state message. If you don't set this value, the name of the executing machine is used. (Inherited from ConfigMgrInventoryMessage.) |
|
Priority | Gets the priority for a message. This property is only used for reference by senders and has no effect on the message. (Inherited from Message.) |
|
ReportContentType | Gets the report content type. The report content type for a DDR is "Inventory Data". (Overrides ConfigMgrInventoryMessage.ReportContentType.) |
|
ReportFormat | Gets or sets the report format. The default report format is 1.1. This property can be overridden by inheriting classes. (Inherited from ConfigMgrInventoryMessage.) |
|
ReportVersion | Gets or sets the report version. The default report version is 1.0. This property can be overridden by inheriting classes (Inherited from ConfigMgrInventoryMessage.) |
|
SenderCallback | Gets a sender callback for a message. This property is null unless a message is in the process of being sent. (Inherited from Message.) |
|
SenderType | Gets the sender type for a message. This property is only used for reference by senders and has no effect on the message. (Inherited from Message.) |
|
Settings | Gets message settings. (Inherited from Message.) |
|
SiteCode | Gets or sets the site code. DDR messages require a site code. (Overrides ConfigMgrInventoryMessage.SiteCode.) |
|
SmsId | Gets or sets the SMSID used for the message. This property must be set for inventory messages. (Inherited from ConfigMgrInventoryMessage.) |
|
SupportsInlineSerializers | Gets a value that indicates whether Serialize() is called on send and DeserializeMessageBody is called on receive. The default setting for this property is true. Override to false with caution. (Inherited from Message.) |
Methods
Name | Description | |
---|---|---|
AddCertificateToMessage(MessageCertificateX509, CertificatePurposes) | Adds a certificate to the message. (Inherited from Message.) |
|
AddCertificateToMessage(MessageCertificateX509, CertificatePurposes, Boolean) | Adds a certificate to a message with the option to disable any intelligence. (Inherited from Message.) |
|
BuildInventoryMessage(Collection<InventoryReportBodyElement>) | Constructs an inventory report from an InventoryReportBodyElement object array. (Inherited from ConfigMgrInventoryMessage.) |
|
BuildInventoryMessage(Collection<InventoryReportBodyElement>, Boolean) | Constructs an inventory report from an InventoryReportBodyElement object array. (Inherited from ConfigMgrInventoryMessage.) |
|
BuildInventoryMessage(InventoryReportBodyElement) | Constructs an inventory report from an InventoryReportBodyElement object by using default settings. (Inherited from ConfigMgrInventoryMessage.) |
|
BuildInventoryMessage(InventoryReportBodyElement, Boolean) | Constructs an inventory report from an InventoryReportBodyElement object by using default settings. (Inherited from ConfigMgrInventoryMessage.) |
|
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.) |
|
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.) |
|
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.) |
|
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.) |
|
Discover() | Performs discovery. If values for DomainName and ADSiteName are not specified, at this point they will be populated. (Overrides ConfigMgrInventoryMessage.Discover().) |
|
Equals(Object) | (Inherited from Object.) |
|
GetCertificateFromMessage(CertificatePurposes) | Retrieves the X509-based certificate from a message. (Inherited from Message.) |
|
GetHashCode() | (Inherited from Object.) |
|
GetType() | (Inherited from Object.) |
|
OnDeserialization(Object) | Ensures validity checks are never performed on deserialization. (Inherited from Message.) |
|
PostSendActions(IMessageSender, Boolean) | Actions that run after a message is sent. This is an asynchronous action; use with caution. (Inherited from Message.) |
|
PreSendActions() | Actions that run before the message is sent. This operation is synchronous and blocking. (Inherited from Message.) |
|
SendMessage(IMessageSender) | Sends the message using the specified sender.(Inherited from AsynchronousMessage.) |
|
SerializeMessageBody() | Serializes the payload. (Overrides ConfigMgrInventoryMessage.SerializeMessageBody().) |
|
SimpleBodyDeserialization<T>() | Helper function that deserializes an object from the existing payload. (Inherited from Message.) |
|
SimpleBodyDeserialization<T>(DeserializationArguments) | Helper function that deserializes an object from the existing payload. (Inherited from Message.) |
|
SimpleObjectSerialization(Object) | Helper function that serializes an object to a payload. (Inherited from Message.) |
|
ToString() | (Inherited from Object.) |
|
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.) |
|
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. (Overrides Message.Validate(IMessageSender).) |
Explicit Interface Implementations
Name | Description | |
---|---|---|
IMessage.SendMessage(IMessageSender) | Sends a message by using the specified sender. (Inherited from Message.) |
|
IMessageBase.Settings | Gets message properties and settings. (Inherited from Message.) |
Examples
HttpSender sender = new HttpSender();
ConfigMgrDataDiscoveryRecordMessage message = new ConfigMgrDataDiscoveryRecordMessage();
message.AddCertificateToMessage(new MessageCertificateX509Volatile("MyCertificate.pfx", "password"), CertificatePurposes.Signing);
message.Settings.HostName = "MyManagementPoint";
message.Discover();
message.SmsId = new SmsClientId();
message.SiteCode = "ABC";
message.SendMessage(sender);
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