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 | |
---|---|---|
MessagePropertyAttribute(MessagePropertyImportance) | Initializes a new instance of the MessagePropertyAttribute class. Builds the attribute with Importance. |
Properties
Name | Description | |
---|---|---|
CanBeNull | Gets or sets a value that indicates whether the class or property is allowed to be null. The default value is false. |
|
CheckRecursively | Gets or sets a value that indicates whether to check for properties in objects embedded in that property. Recursion goes down one level. |
|
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. |
|
Importance | Gets the importance level for the message. |
|
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. |
|
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. |
|
TypeId | (Inherited from Attribute.) |
Methods
Name | Description | |
---|---|---|
Equals(Object) | (Inherited from Attribute.) |
|
GetHashCode() | (Inherited from Attribute.) |
|
GetType() | (Inherited from Object.) |
|
IsDefaultAttribute() | (Inherited from Attribute.) |
|
Match(Object) | (Inherited from Attribute.) |
|
ToString() | (Inherited from Object.) |
Explicit Interface Implementations
Name | Description | |
---|---|---|
_Attribute.GetIDsOfNames(Guid, IntPtr, UInt32, UInt32, IntPtr) | (Inherited from Attribute.) |
|
_Attribute.GetTypeInfo(UInt32, UInt32, IntPtr) | (Inherited from Attribute.) |
|
_Attribute.GetTypeInfoCount(UInt32) | (Inherited from Attribute.) |
|
_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