[This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.]

Defines a status message attribute as being a Property

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

Syntax

                 
  C#     Visual Basic     Visual C++  
[
SerializableAttribute]
[
AttributeUsageAttribute(
AttributeTargets.Property)]
public 
sealed 
class 
StatusMessagePropertyAttribute : 
Attribute
<
SerializableAttribute> _
<
AttributeUsageAttribute(
AttributeTargets.Property)> _
Public 
NotInheritable 
Class 
StatusMessagePropertyAttribute _
	
Inherits 
Attribute
[
SerializableAttribute]
[
AttributeUsageAttribute(
AttributeTargets::Property)]
public 
ref class 
StatusMessagePropertyAttribute 
sealed : 
public 
Attribute

Members

                             
  All Members     Constructors      Properties      Methods      Explicit Interface Implementations   
 Public

 Protected
 Instance

 Static 
 Declared

 Inherited
 XNA Framework Only 

 .NET Compact Framework Only 

  Member Description
StatusMessagePropertyAttribute () () () ()
Initializes a new instance of the StatusMessagePropertyAttributeclass.
StatusMessagePropertyAttribute(Boolean)
Initializes a new instance of the StatusMessagePropertyAttributeclass.
StatusMessagePropertyAttribute(String)
Initializes a new instance of the StatusMessagePropertyAttributeclass.
StatusMessagePropertyAttribute(String, Boolean)
Initializes a new instance of the StatusMessagePropertyAttributeclass.
EnumAsInteger
If true, and the value is an enum, it will be represented as its integral value. If false, it will be represented as a string.
Equals(Object) (Inherited from Attribute.)
Finalize () () () () (Inherited from Object.)
GetHashCode () () () () (Inherited from Attribute.)
_Attribute . . :: . . GetIDsOfNames(Guid % , IntPtr, UInt32, UInt32, IntPtr) (Inherited from Attribute.)
GetType () () () () (Inherited from Object.)
_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.)
IsDefaultAttribute () () () () (Inherited from Attribute.)
Match(Object) (Inherited from Attribute.)
MemberwiseClone () () () () (Inherited from Object.)
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 have your property named MyId, but have it serialize as MyID.

Required
If true, property is required to be a non-null value.
ToString () () () () (Inherited from Object.)
TypeId (Inherited from Attribute.)

Inheritance Hierarchy

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

See Also