[This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.]

This will generate a status message and validate it. This is less free-form than AdHocStatusMessage as it actually performs validations against actual status messages.

This polls WMI so there must be an SMS client or MP installed or else this class will not work.

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

Syntax

                 
  C#     Visual Basic     Visual C++  
[
SerializableAttribute]
public 
sealed 
class 
StatusMessageGenerator : 
CcmEvent
<
SerializableAttribute> _
Public 
NotInheritable 
Class 
StatusMessageGenerator _
	
Inherits 
CcmEvent
[
SerializableAttribute]
public 
ref class 
StatusMessageGenerator 
sealed : 
public 
CcmEvent

Members

                       
  All Members     Constructors      Properties      Methods   
 Public

 Protected
 Instance

 Static 
 Declared

 Inherited
 XNA Framework Only 

 .NET Compact Framework Only 

  Member Description
StatusMessageGenerator () () () ()
Initializes a new instance of the StatusMessageGeneratorclass. If you use this, you must make sure to invoke the GatherStatusMessageProperties method.
StatusMessageGenerator(String)
Initializes a new instance of the StatusMessageGeneratorclass. Gathers information from the specified status event
ClientId
Client ID of the client sending the status message
(Inherited from CcmEvent.)
DateTime
Gets/sets the time for the status message. Defaults to Now.

This needs to be set to a SmsTime-style format, not a DateTime format or else serialization on the MP will fail.

(Inherited from CcmEvent.)
Equals(Object) (Inherited from Object.)
EventId
Event ID for the message
(Inherited from CcmEvent.)
Finalize () () () () (Inherited from Object.)
GatherStatusMessageProperties(String)
Attempts to pull all of the status message information from WMI
GetHashCode () () () () (Inherited from Object.)
GetPropertyType(String)
Gets the CimType for the property. When sending the status message to the MP, it always sends as an object without any validation. It's up to the user of this class to verify type correctness.
GetRequiredProperties () () () ()
Returns a list of all of the status message properties that must be set.
GetType () () () () (Inherited from Object.)
MemberwiseClone () () () () (Inherited from Object.)
ProcessId
Gets/sets the ProcessID for the message. Defaults to the current process' ID.
(Inherited from CcmEvent.)
SetPropertyValue(String, Object)
Sets a property's value
Severity
Message severity is automatically parsed from the WMI event itself
(Overrides CcmEvent . . :: . . Severity.)
StatusMessageProperties
Performs consistency checks on the status message properties. This should not be invoked directly -- this should only be called by SccmStatusMessage.ParseStatusMessage(...).

This will throw an exception if any properties that are required are not set.

StatusMessageType
Status message type is automatically parsed from the WMI event itself
(Overrides CcmEvent . . :: . . StatusMessageType.)
Synchronizer
Thread-safe synchronization object
(Inherited from CcmEvent.)
ThreadId
Gets/sets the ThreadID for the message. Default to the current process' thread ID.
(Inherited from CcmEvent.)
ToString () () () () (Inherited from Object.)

Inheritance Hierarchy

System . . :: . . Object
   Microsoft.ConfigurationManagement.Messaging.StatusMessages . . :: . . CcmEvent
     Microsoft.ConfigurationManagement.Messaging.StatusMessages . . :: . . StatusMessageGenerator

See Also