Castle.MonoRail.Framework.DynamicActionProviderAttribute.DynamicActionProviderAttribute C# (CSharp) Method

DynamicActionProviderAttribute() public method

Constructs a DynamicActionProviderAttribute associating the supplied type as the action provider.
public DynamicActionProviderAttribute ( Type providerType ) : System
providerType System.Type
return System
		public DynamicActionProviderAttribute( Type providerType )
		{
			if (!typeof(IDynamicActionProvider).IsAssignableFrom( providerType ))
			{
				throw new ArgumentException( "The specified provider does not implement IDynamicActionProvider" );
			}

			this.providerType = providerType;
		}
DynamicActionProviderAttribute