CertyRush
Đang tải...
C CertyRush
Câu hỏi free preview

Câu 87: Certified Platform Developer II

Universal Containers stores user preferences in a Hierarchy Custom Setting, User_Prefs_c, with a Checkbox field, Show_Help_c. Company-level defaults are stored at the organizational level, but may be overridden at the user level. If a user has not overridden preferences, then the defaults should be used. How should th…

Nội dung câu hỏi

Universal Containers stores user preferences in a Hierarchy Custom Setting, User_Prefs_c, with a Checkbox field, Show_Help_c. Company-level defaults are stored at the organizational level, but may be overridden at the user level. If a user has not overridden preferences, then the defaults should be used. How should the Show_Help_c preference be retrieved for the current user?

Các lựa chọn

Đáp án được giữ gọn theo nhãn A, B, C, D trong phần bình chọn tương tác.

  1. A. Boolean show = User_Prefs__c.getValues(UserInfo.getUserId()).Show_Help__c;
  2. B. Boolean show = User_Prefs__c.getInstance().Show_Help__c; — đáp án hiện tại
  3. C. Boolean show = User_Prefs__c.Show_Help__c;
  4. D. Boolean show = User_Prefs__c.getValues().Show_Help__c;

Cộng đồng

0 bình luận công khai. Tên thành viên được ẩn một phần.

Chưa có bình luận. Mở giao diện tương tác để bắt đầu thảo luận.

Câu hỏi liền kề