Condividi tramite


MessagePropertyAttribute Class

 

Defines message property requirements and settings.

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

Inheritance Hierarchy

System.Object
  System.Attribute
    Microsoft.ConfigurationManagement.Messaging.Framework.MessagePropertyAttribute

Syntax

[SerializableAttribute]
[AttributeUsageAttribute(AttributeTargets.Property, AllowMultiple = false, 
    Inherited = true)]
public sealed class MessagePropertyAttribute : Attribute
[SerializableAttribute]
[AttributeUsageAttribute(AttributeTargets::Property, AllowMultiple = false, 
    Inherited = true)]
public ref class MessagePropertyAttribute sealed : Attribute
<SerializableAttribute>
<AttributeUsageAttribute(AttributeTargets.Property, AllowMultiple := False,
    Inherited := True)>
Public NotInheritable Class MessagePropertyAttribute
    Inherits Attribute

Constructors

Name Description
System_CAPS_pubmethod MessagePropertyAttribute(MessagePropertyImportance)

Initializes a new instance of the MessagePropertyAttribute class. Builds the attribute with Importance.

Properties

Name Description
System_CAPS_pubproperty CanBeNull

Gets or sets a value that indicates whether the class or property is allowed to be null. The default value is false.

System_CAPS_pubproperty CheckRecursively

Gets or sets a value that indicates whether to check for properties in objects embedded in that property. Recursion goes down one level.

System_CAPS_pubproperty IgnoreForSender

Gets or sets a list of senders that will ignore this property when validating the message. Some properties are not necessary for certain senders.

System_CAPS_pubproperty Importance

Gets the importance level for the message.

System_CAPS_pubproperty RangeMax

Gets or sets a maximum range for the message. The value must be an object type that implements IComparable (such as Int32 or string) or it will fail during validation.

System_CAPS_pubproperty RangeMin

Gets or sets a minimum range for the message. The value must be an object type that implements IComparable (such as Int32 or string) or it will fail during validation.

System_CAPS_pubproperty TypeId

(Inherited from Attribute.)

Methods

Name Description
System_CAPS_pubmethod Equals(Object)

(Inherited from Attribute.)

System_CAPS_pubmethod GetHashCode()

(Inherited from Attribute.)

System_CAPS_pubmethod GetType()

(Inherited from Object.)

System_CAPS_pubmethod IsDefaultAttribute()

(Inherited from Attribute.)

System_CAPS_pubmethod Match(Object)

(Inherited from Attribute.)

System_CAPS_pubmethod ToString()

(Inherited from Object.)

Explicit Interface Implementations

Name Description
System_CAPS_pubinterfaceSystem_CAPS_privmethod _Attribute.GetIDsOfNames(Guid, IntPtr, UInt32, UInt32, IntPtr)

(Inherited from Attribute.)

System_CAPS_pubinterfaceSystem_CAPS_privmethod _Attribute.GetTypeInfo(UInt32, UInt32, IntPtr)

(Inherited from Attribute.)

System_CAPS_pubinterfaceSystem_CAPS_privmethod _Attribute.GetTypeInfoCount(UInt32)

(Inherited from Attribute.)

System_CAPS_pubinterfaceSystem_CAPS_privmethod _Attribute.Invoke(UInt32, Guid, UInt32, Int16, IntPtr, IntPtr, IntPtr, IntPtr)

(Inherited from Attribute.)

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