DefaultMemberAttribute Constructor
Initializes a new instance of the DefaultMemberAttribute class.
Namespace: System.Reflection
Assembly: mscorlib (in mscorlib.dll)
Syntax
public DefaultMemberAttribute (
string memberName
)
Parameters
memberName
A String object that contains the name of the member to you want to invoke. This member can be a constructor, method, property, or field. Note that you must specify a suitable invocation attribute. You can invoke the default member of a class by passing an empty String object as the name of the member.You mark the default member of a type with the DefaultMemberAttribute custom attribute, or you can mark it in COM in the usual way.
Version Information
Available in the .NET Micro Framework versions 2.0, 2.5, 3.0, 4.0, 4.1, and 4.2.
See Also
Reference
DefaultMemberAttribute Class
DefaultMemberAttribute Members
System.Reflection Namespace