MicrosoftDocs / winrt-api

WinRT reference content for developing Microsoft Universal Windows Platform (UWP) apps
Creative Commons Attribution 4.0 International
231 stars 499 forks source link

How to apply the function in javascript ??? #2413

Closed AlmTalal closed 1 year ago

AlmTalal commented 1 year ago

[Enter feedback here]


Document Details

Do not edit this section. It is required for learn.microsoft.com ➟ GitHub issue linking.

stevewhims commented 1 year ago

You can choose "JavaScript" from the language picker in the upper-right of the webpage to see the syntax for the function (at least). I believe the syntax would be myObject.close();, but JavaScript (for UWP apps) isn't a language that the docs invest in as highly these days as they once did.

-Steve

AlmTalal commented 1 year ago

I think that I just found it, you have to use Foundation namespace to be able to use it. I’m new in UWP app, but I have a project with react native for windows and one of the principal features uses WinRT APIs

On Tue, Oct 17, 2023 at 18:23 Steven White @.***> wrote:

You can choose "JavaScript" from the language picker in the upper-right of the webpage. I believe the syntax would be myObject.close();, but JavaScript (for UWP apps) isn't a language that the docs invest in as highly these days as they once did.

-Steve

— Reply to this email directly, view it on GitHub https://github.com/MicrosoftDocs/winrt-api/issues/2413#issuecomment-1767283786, or unsubscribe https://github.com/notifications/unsubscribe-auth/AYFZRMNPHDWQVXKPO7H2MO3X74APRAVCNFSM6AAAAAA6ERKLC2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTONRXGI4DGNZYGY . You are receiving this because you authored the thread.Message ID: @.***>