TrustLevel.Name Property

 

Gets or sets a named security level that is mapped to a policy file.

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

<ConfigurationPropertyAttribute("name", IsRequired := True, DefaultValue := "Full",
	IsKey := True)>
<StringValidatorAttribute(MinLength := 1)>
Public Property Name As String

Property Value

Type: System.String

The Name that is mapped to a policy file.

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

' Get the Name of the TrustLevel object.
Console.WriteLine("Name: {0}", TrustLevel1.Name)

.NET Framework
Available since 2.0
Return to top
Show: