SystemWebSectionGroup.Deployment Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets the deployment
section.
public:
property System::Web::Configuration::DeploymentSection ^ Deployment { System::Web::Configuration::DeploymentSection ^ get(); };
[System.Configuration.ConfigurationProperty("deployment")]
public System.Web.Configuration.DeploymentSection Deployment { get; }
[<System.Configuration.ConfigurationProperty("deployment")>]
member this.Deployment : System.Web.Configuration.DeploymentSection
Public ReadOnly Property Deployment As DeploymentSection
Property Value
The DeploymentSection object.
- Attributes
Examples
The following code example shows how to obtain the DeploymentSection object from the configuration file of an existing Web application.
// Get the deployment section.
DeploymentSection deployment =
systemWeb.Deployment;
// Read section information.
info =
deployment.SectionInformation;
name = info.SectionName;
type = info.Type;
declared = info.IsDeclared.ToString();
msg = String.Format(
"Name: {0}\nDeclared: {1}\nType: {2}\n",
name, declared, type);
' Get the deployment section.
Dim deployment As DeploymentSection = _
systemWeb.Deployment
' Read section information.
info = deployment.SectionInformation
name = info.SectionName
type = info.Type
declared = info.IsDeclared.ToString()
msg = String.Format("Name: {0}" + _
ControlChars.Lf + "Declared: {1}" + _
ControlChars.Lf + "Type: {2}" + _
ControlChars.Lf, name, declared, type)
Remarks
The DeploymentSection object refers to the deployment
section of the configuration file.
Applies to
See also
Berkolaborasi dengan kami di GitHub
Sumber untuk konten ini dapat ditemukan di GitHub, yang juga dapat Anda gunakan untuk membuat dan meninjau masalah dan menarik permintaan. Untuk informasi selengkapnya, lihat panduan kontributor kami.