web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Small and medium business | Business Central, N...
Answered

What is property access syntax?

(0) ShareShare
ReportReport
Posted on by 2
The note /This method can be invoked using property access syntax/ appears on many pages in the Business Central for files found in the BC Dev Documentation.
 
What does it mean? 
 
What is property access syntax?
 
What other ways can methods be invoked?
 
What are examples on methods that cannot be invoked using property access syntax?
 
What is the point of this note?
 
 
 
I have the same question (0)
  • Verified answer
    Judy Profile Picture
    Microsoft Employee on at
    What is property access syntax?
    Hi,
     
    When it is mentioned that a method can be invoked using property access syntax, it means that the method can be called or accessed using the syntax typically used for accessing properties. Instead of using traditional method invocation syntax with parentheses, you can use the dot notation to access the method as if it were a property.
    For example, instead of calling a method like this:
    Database.UserId();
    You can also use property access syntax like this without parentheses:
    User := UserId;
     
    The reference document:
     
    Best Regards,
    Judy

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Andrés Arias – Community Spotlight

We are honored to recognize Andrés Arias as our Community Spotlight honoree for…

Leaderboard > Small and medium business | Business Central, NAV, RMS

#1
Sohail Ahmed Profile Picture

Sohail Ahmed 2,678 Super User 2025 Season 2

#2
Sumit Singh Profile Picture

Sumit Singh 2,635

#3
Jeffrey Bulanadi Profile Picture

Jeffrey Bulanadi 2,210

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans