จัดทุกอย่างให้เป็นระเบียบอยู่เสมอด้วยคอลเล็กชัน
บันทึกและจัดหมวดหมู่เนื้อหาตามค่ากำหนดของคุณ
blockly > การเชื่อมต่อ > getParentAndChildConnections
เมธอด Connection.getParentAndChildConnections()
แสดงผลการเชื่อมต่อระดับบนสุด (เหนือกว่า) และการเชื่อมต่อย่อย (ด้อยกว่า) จากการเชื่อมต่อนี้และการเชื่อมต่อที่เชื่อมต่ออยู่
ลายเซ็น:
protected getParentAndChildConnections(): {
parentConnection?: Connection;
childConnection?: Connection;
};
การคืนสินค้า:
{ parentConnection?: Connection; childConnection?: Connection; }
การเชื่อมต่อระดับบนสุดและการเชื่อมต่อย่อย โดยพิจารณาจากการเชื่อมต่อนี้และการเชื่อมต่อที่มี
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2025-07-25 UTC
[null,null,["อัปเดตล่าสุด 2025-07-25 UTC"],[],["The `getParentAndChildConnections()` method identifies the parent and child connections within a linked pair. It returns an object containing two optional properties: `parentConnection` and `childConnection`, both of which are of the `Connection` type. This method determines the hierarchical relationship between two connected instances, indicating which is superior (parent) and which is inferior (child). It is a protected method and used internally within a class.\n"]]