Attributes (Visual Basic)
Visual Basic provides several attributes that allow objects to interoperate with unmanaged code, and one attribute that enables module members to be accessed without the module name. The following table lists the attributes used by Visual Basic.
Attribute | Description |
---|---|
ComClassAttribute | Instructs the compiler to add metadata that allows a class to be exposed as a COM object. |
HideModuleNameAttribute | Allows the module members to be accessed using only the qualification needed for the module. |
VBFixedArrayAttribute | Indicates that an array in a structure or non-local variable should be treated as a fixed-length array. |
VBFixedStringAttribute | Indicates that a string should be treated as if it were fixed length. |
See also
Cộng tác với chúng tôi trên GitHub
Bạn có thể tìm thấy nguồn cho nội dung này trên GitHub, nơi bạn cũng có thể tạo và xem lại các vấn đề và yêu cầu kéo. Để biết thêm thông tin, hãy xem hướng dẫn dành cho người đóng góp của chúng tôi.
Phản hồi
https://aka.ms/ContentUserFeedback.
Sắp ra mắt: Trong năm 2024, chúng tôi sẽ dần gỡ bỏ Sự cố với GitHub dưới dạng cơ chế phản hồi cho nội dung và thay thế bằng hệ thống phản hồi mới. Để biết thêm thông tin, hãy xem:Gửi và xem ý kiến phản hồi dành cho