PageRenderTime 45ms CodeModel.GetById 21ms RepoModel.GetById 0ms app.codeStats 0ms

/tags/stable-1.1.1/Server/DefaultDocument/DefaultDocumentSection.cs

#
C# | 32 lines | 20 code | 4 blank | 8 comment | 2 complexity | aa7158c7f43c5ec2ed7c904e513f5843 MD5 | raw file
Possible License(s): CC-BY-SA-3.0
  1. //-----------------------------------------------------------------------
  2. // <copyright>
  3. // Copyright (C) Ruslan Yakushev for the PHP Manager for IIS project.
  4. //
  5. // This file is subject to the terms and conditions of the Microsoft Public License (MS-PL).
  6. // See http://www.microsoft.com/opensource/licenses.mspx#Ms-PL for more details.
  7. // </copyright>
  8. //-----------------------------------------------------------------------
  9. using Microsoft.Web.Administration;
  10. namespace Web.Management.PHP.DefaultDocument
  11. {
  12. internal class DefaultDocumentSection : ConfigurationSection
  13. {
  14. private FilesCollection _files;
  15. public FilesCollection Files
  16. {
  17. get
  18. {
  19. if (this._files == null)
  20. {
  21. ConfigurationElement files = base.GetChildElement("files");
  22. this._files = (FilesCollection)files.GetCollection(typeof(FilesCollection));
  23. }
  24. return this._files;
  25. }
  26. }
  27. }
  28. }