Directional Attributes

Định nghĩa Directional Attributes là gì?

Directional AttributesThuộc tính định hướng. Đây là nghĩa tiếng Việt của thuật ngữ Directional Attributes - một thuật ngữ thuộc nhóm Technology Terms - Công nghệ thông tin.

Độ phổ biến(Factor rating): 5/10

Thuộc tính định hướng, trong C #, là thẻ dùng để xác định tham số phương pháp đối tượng (s) với các thông tin liên quan đến dòng chảy hướng của dữ liệu giữa người gọi và callee. thuộc tính định hướng quyền kiểm soát marshaling - nơi một đối tượng được chuẩn bị cho việc chuyển giao qua một ứng dụng hoặc quá trình ranh giới - định hướng và trở lại các giá trị tham số phương pháp của. thuộc tính định hướng được áp dụng để thay đổi marshaling runtime khi giao tiếp mã số quản lý, được thực hiện bởi Common Language Runtime (CLR), và mã không được quản lý, được thực hiện bên ngoài sự kiểm soát của CLR.

Xem thêm: Thuật ngữ công nghệ A-Z

Giải thích ý nghĩa

InAttribute và OutAttribute là các thuộc tính hai C # hướng sử dụng để ánh xạ các đối tượng Component mẫu của (COM) Interface Definition Language (IDL) thuộc tính. InAttribute bản đồ tới [trong], và OutAttribute bản đồ tới [ra]. Phương pháp giá trị chữ ký trở lại quản lý bản đồ tới [ra, retval] trong một thư viện kiểu. Nó là điều cần thiết để xác định các thuộc tính định hướng đúng các thông số phương pháp, do đó thư viện kiểu xuất khẩu đặt ra một cách chính xác các bit In / Out. Bằng cách áp dụng InAttribute và OutAttribute trong mảng và định dạng các loại phi blittable (mà không có quản lý chung và đại diện bộ nhớ không được quản lý), người gọi nhìn thấy những thay đổi callee. thuộc tính định hướng áp dụng cho các loại giảm bản sao không cần thiết trong marshaling. Trong C #, InAttribute và OutAttribute được sử dụng trong ba hình thức với hai từ khóa trong người gọi và thông tin liên lạc callee, như sau:

What is the Directional Attributes? - Definition

Directional attributes, in C#, are tags used to specify object method parameter(s) with information related to the directional flow of data between the caller and callee. Directional attributes control marshaling - where an object is prepared for transfer across an application or process boundary - of the method parameter's direction and return values. Directional attributes are applied to modify runtime marshaling while communicating managed code, which is executed by the Common Language Runtime (CLR), and unmanaged code, which is executed outside the control of the CLR.

Understanding the Directional Attributes

InAttribute and OutAttribute are the two C# directional attributes used to map to the Component Object Model's (COM) Interface Definition Language (IDL) attributes. InAttribute maps to [in], and OutAttribute maps to [out]. The managed method signature return value maps to [out, retval] in a type library. It is essential to specify the right directional attribute to method parameters, so that the exporting type library correctly sets the In/Out bits. By applying InAttribute and OutAttribute in arrays and formatted non-blittable types (that do not have common managed and unmanaged memory representation), the caller sees callee changes. Directional attributes applied to these types reduce unnecessary copies during marshaling. In C#, InAttribute and OutAttribute are used in three forms with two keywords during caller and callee communication, as follows:

Thuật ngữ liên quan

  • Attribute
  • Marshalling
  • Component Object Model (COM)
  • Managed Code
  • Common Language Runtime (CLR)
  • Serialization
  • Commit
  • Access Modifiers
  • Acyclic
  • Appending Virus

Source: ? Technology Dictionary - Filegi - Techtopedia - Techterm

Trả lời

Email của bạn sẽ không được hiển thị công khai. Các trường bắt buộc được đánh dấu *