TrustLevel.PolicyFile Property

 

Gets or sets the configuration file reference that contains the security policy settings for the named security level.

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

[ConfigurationPropertyAttribute("policyFile", IsRequired = true, 
	DefaultValue = "internal")]
public string PolicyFile { get; set; }

Property Value

Type: System.String

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

The following code example demonstrates how to use the PolicyFile property. This code example is part of a larger example provided for the TrustLevel class.

// Get the PolicyFile of the TrustLevel object.
Console.WriteLine("PolicyFile: {0}", TrustLevel2.PolicyFile);

.NET Framework
Available since 2.0
Return to top
Show: