StatusMessageQualifierAttribute Constructor (String, Boolean)
Initializes a new instance of the StatusMessageQualifierAttribute class.
Namespace: Microsoft.ConfigurationManagement.Messaging.Messages
Assembly: Microsoft.ConfigurationManagement.Messaging (in Microsoft.ConfigurationManagement.Messaging.dll)
Syntax
public StatusMessageQualifierAttribute(
string name,
bool required
)
public:
StatusMessageQualifierAttribute(
String^ name,
bool required
)
Public Sub New (
name As String,
required As Boolean
)
Parameters
name
Type: System.StringWhen 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.
required
Type: System.BooleanIf true, the property must be set to a non-null value or an exception will be thrown when the message is parsed.
See Also
StatusMessageQualifierAttribute Overload
StatusMessageQualifierAttribute Class
Microsoft.ConfigurationManagement.Messaging.Messages Namespace
Return to top