Application Class
This page is specific to:.NET Framework Version:3.5
.NET Framework Class Library
Application Class

Defines properties common to all applications in Internet Information Services (IIS).

Namespace:  Microsoft.Web.Administration
Assembly:  Microsoft.Web.Administration (in Microsoft.Web.Administration.dll)
Syntax

'Usage

Dim instance As Application

'Declaration

Public NotInheritable Class Application _
    Inherits ConfigurationElement
Remarks

An application is a grouping of content in a Web site in IIS. Applications are designated by the physical path of the content and properties that are specific to the content in that path.

Examples

The following example creates a Web application.

Imports System
Imports System.Collections.Generic
Imports System.Text
Imports Microsoft.Web.Administration
Imports Microsoft.Web.Management

Namespace AdministrationSnippets
    Public Class AdministrationApplication
        '' Creates an application under the default web site
        Public Sub CreateApplication()
            Dim manager As New ServerManager()
            Dim defaultSite As Site = manager.Sites("Default Web Site")
            defaultSite.Applications.Add("/blogs", _
                "C:\\inetpub\\wwwroot\\blogs")
            manager.CommitChanges()
        End Sub
    End Class
End Namespace


Inheritance Hierarchy

System..::.Object
  Microsoft.Web.Administration..::.ConfigurationElement
    Microsoft.Web.Administration..::.Application
Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
See Also

Reference

© 2009 Microsoft Corporation. All rights reserved.   Terms of Use | Trademarks | Privacy Statement
Page view tracker
Rate the Lightweight library
x
Lightweight builds on ScriptFree (loband) by adding features you've requested: a SearchBox and default code language selection.
Do you like the SearchBox?
Do you like the tabbed code blocks?
How useful is this topic?
Tell us more.
Thanks
x
You're helping to improve MSDN Online.
Feedback
Switch View
Classic
Lightweight Beta
ScriptFree
Switch View