tailieunhanh - Programming Visual Basic 2008 phần 5

Mã Dự án Thư viện tài liệu tham khảo một số của các không gian tên quan trọng. NET, chẳng hạn như hệ thống và . Tuy nhiên, nó chưa được tham khảo bất kỳ không gian tên . (Nhớ lại rằng "tham chiếu" có nghĩa là truy cập vào một DLL NET trong một dự án. | PROJECT ACCESS Load the Chapter 10 Before Code project either through the New Project templates or by accessing the project directly from the installation directory. To see the code in its final form load Chapter 10 After Code instead. Reference the Data Namespaces The Library Project code has references to several of the important .NET namespaces such as System and . However it doesn t yet reference any of the namespaces. Recall that referencing means accessing a .NET DLL in a project and using its types in your code. Before using them in code we need to create references to them. This is done through the project properties window on the References tab. You ll see a list of those assemblies already referenced by the application see Figure 10-9 . References ị Unused References . 1 ị Reference Paths . Reference Name Type Vers. Copy Local Path System .NET False C Windows Framework Syste rn .De pl oym ent . N ET False C Wiridows Framework Syste rn. D rawi n g . N ET False c Wi n d 0 ws M i c ro s oft. N ET F ra rn e wo rk 0 7 2 7 VSyste Syste m Wi n d ows. F 0 rm 5 . N ET False c Wi n d 0 W M i c ro s oft. N ET F ra m e wo rk v2 0 5 0 7 2 7 Syste m. Wi n d 0 ws. F 0 rm s. d 11 1 Add. I l 1 Remove I 1 Update Figure 10-9. References included in the Library Project To add new references click the Add button just below the list and select Reference if prompted for the type of reference to add. On the Add Reference form the .NET tab should already be active. It s pretty amazing to see just how many .NET assemblies are installed on your system already. But don t just sit there gawking select both and from the component list and then click the OK button. The list of references in the project properties should now include both of the selected namespace libraries. We can

crossorigin="anonymous">
Đã 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.