ComponentOne DataGrid for WPF and Silverlight
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.

In This Topic
    GetSetMethod(Boolean) Method
    In This Topic
    When overridden in a derived class, returns the set accessor for this property.
    Syntax
    'Declaration
     
    
    Public Overloads Overrides Function GetSetMethod( _
       ByVal nonPublic As Boolean _
    ) As MethodInfo
    public override MethodInfo GetSetMethod( 
       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