共用方式為


WebApplicationInformation.ApplicationDomain 屬性

定義

取得目前應用程式定義域名稱。

public:
 property System::String ^ ApplicationDomain { System::String ^ get(); };
public string ApplicationDomain { get; }
member this.ApplicationDomain : string
Public ReadOnly Property ApplicationDomain As String

屬性值

取得應用程式定義域名稱。

範例

下列程式碼範例示範如何取得應用程式功能變數名稱。

public string GetApplicationDomain()
{
    // Get the name of the application domain.
    return (string.Format(
        "Application domain: {0}",
        ApplicationInformation.ApplicationDomain));
}
Public Function GetApplicationDomain() As String
    ' Get the name of the application domain.
    Return String.Format( _
    "Application domain: {0}", _
    ApplicationInformation.ApplicationDomain)
End Function 'GetApplicationDomain

適用於