This documentation is archived and is not being maintained.

DefaultMemberAttribute.MemberName Property

Gets the name from the attribute.

[Visual Basic]
Public ReadOnly Property MemberName As String
public string MemberName {get;}
public: __property String* get_MemberName();
public function get MemberName() : String;

Property Value

A string representing the member name.


There is no set accessor because the name must be provided to the constructor. The name is not optional.


Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, .NET Compact Framework, Common Language Infrastructure (CLI) Standard

See Also

DefaultMemberAttribute Class | DefaultMemberAttribute Members | System.Reflection Namespace