TypeGetProperty Method (String) |
Searches for the public property with the specified name.
Namespace: SystemAssembly: mscorlib (in mscorlib.dll) Version: 4.0.0.0
Syntax public PropertyInfo GetProperty(
string name
)
Parameters
- name
- Type: SystemString
The string containing the name of the public property to get.
Return Value
Type:
PropertyInfoAn object representing the public property with the specified name, if found; otherwise, null.
Exceptions Exception | Condition |
---|
AmbiguousMatchException | More than one property is found with the specified name. See Remarks. |
ArgumentNullException | name is null. |
See Also