WebBaseEvent.ApplicationInformation 属性

定义

获取一个 WebApplicationInformation 对象,该对象包含有关当前正在监视的应用程序的信息。

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

属性值

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

适用于

另请参阅