ComponentOne DataGrid for WPF and Silverlight
GetSetMethod(Boolean) Method

C1.WPF.DataGrid Namespace > CustomPropertyInfo Class > GetSetMethod Method : GetSetMethod(Boolean) Method
Indicates whether the accessor should be returned if it is non-public. true if a non-public accessor is to be returned; otherwise, false.
When overridden in a derived class, returns the set accessor for this property.
Syntax
'Declaration
 
Public Overloads Overrides Function GetSetMethod( _
   ByVal nonPublic As System.Boolean _
) As System.Reflection.MethodInfo
public override System.Reflection.MethodInfo GetSetMethod( 
   System.bool nonPublic
)

Parameters

nonPublic
Indicates whether the accessor should be returned if it is non-public. true if a non-public accessor is to be returned; otherwise, false.

Return Value

Value Condition A System.Reflection.MethodInfo object representing the Set method for this property. The set accessor is public.-or- nonPublic is true and the set accessor is non-public. nullnonPublic is true, but the property is read-only.-or- nonPublic is false and the set accessor is non-public.-or- There is no set accessor.
Exceptions
ExceptionDescription
The requested method is non-public and the caller does not have System.Security.Permissions.ReflectionPermission to reflect on this non-public method.
See Also

Reference

CustomPropertyInfo Class
CustomPropertyInfo Members
Overload List