Share via


ManagementConfigurationPath.SiteName Property

Definition

Gets the Web site name.

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

Property Value

The name of the Web site.

Examples

The following example adds details of the ManagementConfigurationPath object to a linked list.

public LinkedList<string> ConfigurationPath(IServiceProvider sp) {

    Connection con = (Connection)sp.GetService(typeof(Connection));
    LinkedList<string> llp = new LinkedList<string>();
    ManagementConfigurationPath mcp = con.ConfigurationPath;

    llp.AddLast("ApplicationPath: " + mcp.ApplicationPath);
    llp.AddLast("FolderPath: " + mcp.FolderPath);

    llp.AddLast("GetEffectiveConfigurationPath Application: " +
        mcp.GetEffectiveConfigurationPath(ManagementScope.Application));
    llp.AddLast("GetEffectiveConfigurationPath Server: " +
        mcp.GetEffectiveConfigurationPath(ManagementScope.Server));
    llp.AddLast("GetEffectiveConfigurationPath Site: " +
        mcp.GetEffectiveConfigurationPath(ManagementScope.Site));
    llp.AddLast("PathType: " + mcp.PathType.ToString());
    llp.AddLast("SiteName: " + mcp.SiteName);
    return llp;

}

Remarks

The Web site name is initialized in the CreateSiteConfigurationPath method.

Applies to