Export (0) Print
Expand All

TrustLevel.TrustLevel Constructor

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.

Namespace: System.Web.Configuration
Assembly: System.Web (in system.web.dll)

public TrustLevel (
	string name,
	string policyFile
)
public TrustLevel (
	String name, 
	String policyFile
)
public function TrustLevel (
	name : String, 
	policyFile : String
)
Not applicable.

Parameters

name

A named security level that is mapped to a policy file.

policyFile

The configuration file that contains security policy settings for the named security level.

The TrustLevel constructor creates a TrustLevel object by using the supplied parameters.

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");

Windows 98, Windows Server 2000 SP4, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0

Community Additions

ADD
Show:
© 2015 Microsoft