OutputCacheProfile.Name Property


The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Gets or sets the OutputCacheProfile name.

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

[ConfigurationPropertyAttribute("name", IsRequired = true, IsKey = true, 
	DefaultValue = "")]
[StringValidatorAttribute(MinLength = 1)]
public string Name { get; set; }

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.
String nameValue = 

// Set the Name.
outputCacheProfile.Name = 

.NET Framework
Available since 2.0
Return to top