OutputCacheProfile.Name Property

 

Gets or sets the OutputCacheProfile name.

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

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

Property Value

Type: System.String

The OutputCacheProfile name.

You use the Name to assign a value to the CacheProfile attribute of the directive if you want to apply the OutputCacheProfile values to a page or control.

The following code example shows how to use the Name property.

' Get the current Name.
Dim nameValue As String = _
outputCacheProfile.Name

' Set the Name property.
outputCacheProfile.Name = _
String.Empty

.NET Framework
Available since 2.0
Return to top
Show: