TrustLevel(String, String) Constructor
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.
Creates an instance of the TrustLevel class that is initialized based on the provided values, which define the mapping of specific security levels to named policy files.
public:
TrustLevel(System::String ^ name, System::String ^ policyFile);
public TrustLevel (string name, string policyFile);
new System.Web.Configuration.TrustLevel : string * string -> System.Web.Configuration.TrustLevel
Public Sub New (name As String, policyFile As String)
Parameters
- name
- String
A named security level that is mapped to a policy file.
- policyFile
- String
The configuration file that contains security policy settings for the named security level.
Examples
The following code example demonstrates how to use the TrustLevel constructor. This code example is part of a larger example provided for the TrustLevel class.
// Instantiate a new TrustLevel object.
TrustLevel TrustLevel2 =
new TrustLevel("myLevel2", "myLevel2.config");
' Instantiate a new TrustLevel object.
Dim TrustLevel2 As TrustLevel = _
New TrustLevel("myLevel2", "myLevel2.config")
Remarks
The TrustLevel constructor creates a TrustLevel object by using the supplied parameters.
Applies to
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應