共用方式為


WebBaseEvent.ApplicationInformation 屬性

定義

取得 WebApplicationInformation 物件,該物件含有關於目前監視中應用程式的資訊。

public:
 static property System::Web::Management::WebApplicationInformation ^ ApplicationInformation { System::Web::Management::WebApplicationInformation ^ get(); };
public static System.Web.Management.WebApplicationInformation ApplicationInformation { get; }
static member ApplicationInformation : System.Web.Management.WebApplicationInformation
Public Shared ReadOnly Property ApplicationInformation As WebApplicationInformation

屬性值

WebApplicationInformation 物件,含有關於監視中應用程式的資訊。

範例

下列程式碼範例示範如何取得應用程式資訊。

// Gets the current application information.
public WebApplicationInformation GetEventAppInfo()
{
    // Get the event message.
    WebApplicationInformation appImfo = 
        ApplicationInformation;
    return appImfo;
}
' Gets the current application information.
Public Function GetEventAppInfo() As WebApplicationInformation
    ' Get the event message.
    Dim appImfo As WebApplicationInformation = _
    ApplicationInformation
    Return appImfo

End Function 'GetEventAppInfo

適用於

另請參閱