Partager via


MessageSettings.HttpPort Property

 

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.

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

Syntax

[MessagePropertyAttribute(MessagePropertyImportance.Required, 
    RangeMin = 1, RangeMax = 65535, IgnoreForSender = new Type[] { ... })]
public ushort HttpPort { get; set; }
public:
[MessagePropertyAttribute(MessagePropertyImportance::Required, 
    RangeMin = 1, RangeMax = 65535, IgnoreForSender = new array<Type^>^ { ... })]
property unsigned short HttpPort {
    unsigned short get();
    void set(unsigned short value);
}
<MessagePropertyAttribute(MessagePropertyImportance.Required,
    RangeMin := 1, RangeMax := 65535, IgnoreForSender := New Type() { ... })>
Public Property HttpPort As UShort

Property Value

Type: System.UInt16

Port number ranging from 1-65536.

See Also

MessageSettings Class
Microsoft.ConfigurationManagement.Messaging.Framework Namespace

Return to top