TrustSection.Level 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 or sets the name of the security level under which the application will run.
public:
property System::String ^ Level { System::String ^ get(); void set(System::String ^ value); };
[System.Configuration.ConfigurationProperty("level", DefaultValue="Full", IsRequired=true)]
[System.Configuration.StringValidator(MinLength=1)]
public string Level { get; set; }
[<System.Configuration.ConfigurationProperty("level", DefaultValue="Full", IsRequired=true)>]
[<System.Configuration.StringValidator(MinLength=1)>]
member this.Level : string with get, set
Public Property Level As String
Property Value
The name of the trust level. The default is "Full"
.
- Attributes
Examples
The following code example demonstrates how to use the Level property. This code example is part of a larger example provided for the TrustSection class.
// Display Level property
Console.WriteLine("Level: {0}", configSection.Level);
' Display Level property.
Console.WriteLine("Level: {0}", configSection.Level)
Remarks
The Level property specifies the security level under which the application will be run. The default is "Full"
.
There are five available trust levels:
Full
High
Medium
Low
Minimal
The named levels correspond to the security levels that are defined in the <trustLevel>
element for <securityPolicy>
.
Applies to
See also
.NET
フィードバック
https://aka.ms/ContentUserFeedback」を参照してください。
以下は間もなく提供いたします。2024 年を通じて、コンテンツのフィードバック メカニズムとして GitHub の issue を段階的に廃止し、新しいフィードバック システムに置き換えます。 詳細については、「フィードバックの送信と表示