Castle.MonoRail.ActiveRecordSupport.ARDataBinder.BindObject C# (CSharp) Method

BindObject() public method

public BindObject ( Type targetType, string prefix, string exclude, string allow, string expect, Castle.Components.Binder.CompositeNode treeRoot ) : object
targetType System.Type
prefix string
exclude string
allow string
expect string
treeRoot Castle.Components.Binder.CompositeNode
return object
		public object BindObject(Type targetType, string prefix, string exclude, string allow, string expect,
								 CompositeNode treeRoot)
		{
			expectCollPropertiesList = CreateNormalizedList(expect);

			return BindObject(targetType, prefix, exclude, allow, treeRoot);
		}

Usage Example

Example #1
0
        protected object CustomBindObject(ParamStore from, Type paramType, String prefix, int nestedLevel,
                                          String excludedProperties, String allowedProperties, bool autoLoad)
        {
            NameValueCollection webParams = ResolveParamsSource(from);

            ArrayList errorList = new ArrayList();

            object instance = arBinder.BindObject(paramType, prefix, webParams, Context.Request.Files,
                                                  errorList, nestedLevel, excludedProperties, allowedProperties, autoLoad);

            boundInstances[instance] = errorList;

            return(instance);
        }