Partager via


StateMessage Class

 

Represents a state message.

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.StateMessage

Syntax

[SerializableAttribute]
public sealed class StateMessage : InventoryReportBodyElement
[SerializableAttribute]
public ref class StateMessage sealed : InventoryReportBodyElement
<SerializableAttribute>
Public NotInheritable Class StateMessage
    Inherits InventoryReportBodyElement

Constructors

Name Description
System_CAPS_pubmethod StateMessage()

Initializes a new instance of the StateMessage class.

System_CAPS_pubmethod StateMessage(StateMessageState, StateMessageTopic)

Initializes a new instance of the StateMessage class. Builds a state message with a predefined state and topic.

Properties

Name Description
System_CAPS_pubproperty MessageTime

Gets or sets the datetime for the state message. The default value is Now.

System_CAPS_pubproperty MessageTimeString

Gets or sets the datetime for the state message. This property is only for serialization. Use MessageTime instead.

System_CAPS_pubproperty SerialNumber

Gets or sets the serial number for the message. Do not use for fallback status point (FSP) messages.

System_CAPS_pubproperty Site

Gets or sets the site code details for replication. This property is required for fallback status point (FSP) messages and is not used for regular state messages.

System_CAPS_pubproperty State

Gets or sets the state blob for the message. This property is required.

System_CAPS_pubproperty StateDetails

Gets or sets the state message details. This property is used by fallback status point (FSP) messages.

System_CAPS_pubproperty Topic

Gets or sets the topic details for the message. This property is required.

System_CAPS_pubproperty UserParameters

Gets or sets the parameters for the message. This property is required.

Methods

Name Description
System_CAPS_pubmethod Equals(Object)

(Inherited from Object.)

System_CAPS_pubmethod GetHashCode()

(Inherited from Object.)

System_CAPS_pubmethod GetType()

(Inherited from Object.)

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