TAILIEUCHUNG - ASP.NET 4 Unleased - p 156

WebConfigurationManager này cũng hỗ trợ các phương pháp sau:. GetSection-Lấy một phần cấu hình tương đối so với các trang hiện tại hoặc một con đường cung cấp ảo. . GetWebApplicationSection-Lấy một phần cấu hình từ tập tin ứng dụng web gốc hiện tại cấu hình web. | 1524 CHAPTER 34 Configuring Applications The WebConfigurationManager also supports the following methods GetSection Retrieves a configuration section relative to the current page or a supplied virtual path. GetWebApplicationSection Retrieves a configuration section from the current web application root web configuration file. OpenMachineConfiguration Retrieves a file on either the local machine or a remote server. OpenMappedMachineConfiguration Retrieves a file by using a particular file mapping. OpenMappedWebConfiguration Retrieves a web configuration file by using a particular file mapping. OpenWebConfiguration Retrieves a file on either the local machine or a remote server. Almost every configuration section in the web configuration file has a corresponding class in .NET Framework that represents the configuration section. These classes provide you with a strongly typed representation of each configuration section. For example corresponding to the authentication section in the web configuration file there is a class. Corresponding to the pages section in the web configuration file there is a class. Each of these classes expose properties that correspond to all the attributes you can set in the web configuration file. Reading Configuration Sections from the Current Application When an application starts the application merges all the configuration settings in the configuration hierarchy to create one representation of the configuration settings. A particular configuration setting might have different values at different levels in the hierarchy. You can use the methods of the WebConfigurationManager class to get the value of a configuration setting at any level in the hierarchy. The method always retrieves a configuration setting from the application root file. For example

TAILIEUCHUNG - Chia sẻ tài liệu không giới hạn
Địa chỉ : 444 Hoang Hoa Tham, Hanoi, Viet Nam
Website : tailieuchung.com
Email : tailieuchung20@gmail.com
Tailieuchung.com là thư viện tài liệu trực tuyến, nơi chia sẽ trao đổi hàng triệu tài liệu như luận văn đồ án, sách, giáo trình, đề thi.
Chúng tôi không chịu trách nhiệm liên quan đến các vấn đề bản quyền nội dung tài liệu được thành viên tự nguyện đăng tải lên, nếu phát hiện thấy tài liệu xấu hoặc tài liệu có bản quyền xin hãy email cho chúng tôi.
Đã phát hiện trình chặn quảng cáo AdBlock
Trang web này phụ thuộc vào doanh thu từ số lần hiển thị quảng cáo để tồn tại. Vui lòng tắt trình chặn quảng cáo của bạn hoặc tạm dừng tính năng chặn quảng cáo cho trang web này.