Spring '24 (API version 60.0)
public System.PageReference currentPage()
型: System.PageReference
このコードセグメントは、現在のページの ID パラメーターを返します。
1public MyController() { 2 account = [ 3 SELECT Id, Name, Site 4 FROM Account 5 WHERE Id = 6 :ApexPages.currentPage(). 7 getParameters(). 8 get('id') 9 ]; 10}