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

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.

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

Syntax

                 
  C#     Visual Basic     Visual C++  
public 
string 
Name { 
get; 
private 
set; }
Public 
Property 
Name 
As 
String
	
Get
	
Private 
Set
public:
property 
String^ 
Name {
	
String^ 
get ();
	
private: 
void 
set (
String^ 
value);
}

See Also