Aracılığıyla paylaş


Nasıl Yapılır: Güncel Uygulamanın Nesnesini Alma

This example shows how to get a reference to the Application object instance for the current AppDomain.

Örnek

The following example shows how to get a reference to the current Application object instance from the Current property.

      ' Get a reference to the current Application object
      Dim currentApplication As Application = Application.Current
// Get a reference to the current Application object
Application currentApplication = Application.Current;