Share via


StatusMessagePropertyAttribute Class

 

Defines a status message attribute as being a property.

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

Inheritance Hierarchy

System.Object
  System.Attribute
    Microsoft.ConfigurationManagement.Messaging.Messages.StatusMessageMetadataAttribute
      Microsoft.ConfigurationManagement.Messaging.Messages.StatusMessagePropertyAttribute

Syntax

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

Constructors

Name Description
System_CAPS_pubmethod StatusMessagePropertyAttribute()

Initializes a new instance of the StatusMessagePropertyAttribute class.

System_CAPS_pubmethod StatusMessagePropertyAttribute(Boolean)

Initializes a new instance of the StatusMessagePropertyAttribute class.

System_CAPS_pubmethod StatusMessagePropertyAttribute(String)

Initializes a new instance of the StatusMessagePropertyAttribute class.

System_CAPS_pubmethod StatusMessagePropertyAttribute(String, Boolean)

Initializes a new instance of the StatusMessagePropertyAttribute class.

Properties

Name Description
System_CAPS_pubproperty EnumAsInteger

If true, and the value is an enumeration, it will be represented as its integral value. If false, the value will be represented as a string. (Inherited from StatusMessageMetadataAttribute.)

System_CAPS_pubproperty Name

When Name is specified, the property is serialized to XML using the name specified in Name. Otherwise, the property name that uses this attribute is used.

For example, you can create a property called MyId (which satisfies FxCop naming rules), but the XML blob is expecting MyID (which doesn't satisfy FxCop naming rules). By specifying a Name, you can name your property MyId, but have it serialize as MyID. (Inherited from StatusMessageMetadataAttribute.)

System_CAPS_pubproperty Required

If true, the property is required to have a non-null value. (Inherited from StatusMessageMetadataAttribute.)

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

Return to top