Partager via


StatusMessageMetadataAttribute Class

 

Represents an attribute that defines status message metadata.

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
      Microsoft.ConfigurationManagement.Messaging.Messages.StatusMessageQualifierAttribute

Syntax

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

Constructors

Name Description
System_CAPS_protmethod StatusMessageMetadataAttribute()

Initializes a new instance of the StatusMessageMetadataAttribute class.

System_CAPS_protmethod StatusMessageMetadataAttribute(Boolean)

Initializes a new instance of the StatusMessagePropertyAttribute class.

System_CAPS_protmethod StatusMessageMetadataAttribute(String)

Initializes a new instance of the StatusMessageMetadataAttribute class.

System_CAPS_protmethod StatusMessageMetadataAttribute(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.

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.

System_CAPS_pubproperty Required

If true, the property is required to have a non-null value.

System_CAPS_pubproperty TypeId

(Inherited from Attribute.)

Methods

Name Description
System_CAPS_pubmethod Equals(Object)

(Inherited from Attribute.)

System_CAPS_protmethod Finalize()

(Inherited from Object.)

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_protmethod MemberwiseClone()

(Inherited from Object.)

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