Share via


MessageSettings Class

 

Contains settings shared by all message types for sending a message to a management point. Not all properties are recognized by all senders.

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

Inheritance Hierarchy

System.Object
  Microsoft.ConfigurationManagement.Messaging.Framework.MessageSettings

Syntax

[SerializableAttribute]
public sealed class MessageSettings : IMessageSettings
[SerializableAttribute]
public ref class MessageSettings sealed : IMessageSettings
<SerializableAttribute>
Public NotInheritable Class MessageSettings
    Implements IMessageSettings

Constructors

Name Description
System_CAPS_pubmethod MessageSettings()

Initializes a new instance of the MessageSettings class.

Properties

Name Description
System_CAPS_pubproperty BitsUpload

Gets or sets a value that indicates whether BITS will be used to send the message payload to the management point. Not all management point endpoints are compatible with BITS, therefore, use caution when setting this value to true. Additionally, not all senders support BITS uploading.

System_CAPS_pubproperty Compression

Gets or sets the compression used with this message.

System_CAPS_pubproperty CompressionLevel

Gets or sets the compression level used for sending compression. This property is ignored if compression is not enabled.

System_CAPS_pubpropertySystem_CAPS_static DefaultSecurityMode

Controls the default security mode for messages. This property is static and will carry across the entire process. The default value is mixed mode.

System_CAPS_pubproperty Endpoint

Gets or sets the management point endpoint that the message will be sent to.

Important: Do not set this value by anything outside of the messaging library (except for AdhocMessage ). All messages should set this appropriately (except for AdhocMessage ).

System_CAPS_pubproperty HostName

Gets or sets the management point host name that the message will be sent to.

System_CAPS_pubproperty HttpPort

Gets or sets the HTTP port to use for sending the message, if applicable. Not all senders will recognize this property value. For best compatibility, use the GetCommunicationPort method to get the most appropriate port.

System_CAPS_pubproperty HttpsPort

Gets or sets the HTTPS (TLS/SSL) port to use for sending the message, if applicable. Not all senders will recognize this property value. For best compatibility, use the GetCommunicationPort method to get the most appropriate port.

System_CAPS_pubproperty MessageProperties

Gets special message properties. This property is generally used by messages and should not be set by external code.

System_CAPS_pubproperty MessageSourceType

Gets or sets the optional source type for the message.

System_CAPS_pubproperty OverrideValidityChecks

Gets or sets a value that indicates whether the ability to override validity checking is enabled. If true, messages that have required properties that are null or empty will not fail to send.

System_CAPS_pubproperty PostSendActionsEnabled

Gets or sets a value that indicates whether a post-send asynchronous task should be run, if supported by the message.

System_CAPS_pubproperty ReplyCompression

Gets or sets the reply compression used with this message.

System_CAPS_pubproperty ReplyEndpoint

Gets or sets the endpoint to direct message replies to. This setting is only relevant for senders. Do not change this property manually except under special circumstances.

System_CAPS_pubproperty Security

Gets the security settings for the message.

System_CAPS_pubproperty SecurityMode

Gets or sets the site security mode. The default value is mixed mode.

System_CAPS_pubproperty SenderProperties

Gets any special configuration settings for specific senders. Some messages may require special sender-specific settings that can be set here.

System_CAPS_pubproperty ServerRoleType

Gets or sets the optional server role type for the message.

System_CAPS_pubproperty SourceHost

Gets or sets the host name from which the message is sourced. The default value is the NetBIOS name of the local computer, but can be any value.

System_CAPS_pubproperty Timeout

Get or sets a timeout for sending the message. Not all senders will honor this timeout value. The default value is 60 seconds.

Methods

Name Description
System_CAPS_pubmethod CloneSettings(MessageSettings)

Clones settings between message instances. This method can be used to preserve settings from one message to another. Settings that are specific to an implementation of a message will not be cloned.

System_CAPS_pubmethod CloneSettings(MessageSettings, MessageCloneOptions)

Clones settings between message instances. This method can be used to preserve settings from one message to another. Settings that are specific to an implementation of a message will not be cloned.

System_CAPS_pubmethod Equals(Object)

(Inherited from Object.)

System_CAPS_pubmethod GetCommunicationPort()

Gets the port that should be used for communication. The port that is returned depends on the setting for the SecurityMode property. If a specific override is required, use the GetCommunicationPort(MessageSecurityMode) method.

System_CAPS_pubmethod GetCommunicationPort(MessageSecurityMode)

Gets the port that should be used for communication. This is a hint; the actual port that should be used is specific to the implementation.

System_CAPS_pubmethod GetHashCode()

(Inherited from Object.)

System_CAPS_pubmethod GetType()

(Inherited from Object.)

System_CAPS_pubmethod SetCommunicationPort(MessageSecurityMode, UInt16)

Sets the communication port.

System_CAPS_pubmethod ToString()

(Inherited from Object.)

Fields

Name Description
System_CAPS_pubfieldSystem_CAPS_static DefaultHttpPort

Default port for HTTP communication.

System_CAPS_pubfieldSystem_CAPS_static DefaultHttpsPort

Default port for HTTPS communication.

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.Framework Namespace

Return to top