2
0

WebResourceAttribute.cs 840 B

12345678910111213141516171819202122232425262728
  1. //
  2. // System.Web.UI.WebResourceAttribute
  3. //
  4. // Authors:
  5. // Ben Maurer ([email protected])
  6. //
  7. // (C) 2003 Ben Maurer
  8. //
  9. #if NET_1_2
  10. namespace System.Web.UI {
  11. public sealed class WebResourceAttribute : Attribute {
  12. public WebResourceAttribute (string webResource, string contentType) : this (webResource, contentType, false) {}
  13. public WebResourceAttribute (string webResource, string contentType, bool performSubstitution)
  14. {
  15. this.webResource = webResource;
  16. this.contentType = contentType;
  17. this.performSubstitution = performSubstitution;
  18. }
  19. public string ContentType { get { return contentType; } }
  20. public bool PerformSubstitution { get { return performSubstitution; } }
  21. public string WebResource { get { return webResource; } }
  22. bool performSubstitution;
  23. string webResource, contentType;
  24. }
  25. }
  26. #endif