Partage via


OutputCacheProfile.Name Propriété

Définition

Obtient ou définit le nom OutputCacheProfile.

public:
 property System::String ^ Name { System::String ^ get(); void set(System::String ^ value); };
[System.ComponentModel.TypeConverter(typeof(System.Configuration.WhiteSpaceTrimStringConverter))]
[System.Configuration.ConfigurationProperty("name", DefaultValue="", IsKey=true, IsRequired=true)]
[System.Configuration.StringValidator(MinLength=1)]
public string Name { get; set; }
[<System.ComponentModel.TypeConverter(typeof(System.Configuration.WhiteSpaceTrimStringConverter))>]
[<System.Configuration.ConfigurationProperty("name", DefaultValue="", IsKey=true, IsRequired=true)>]
[<System.Configuration.StringValidator(MinLength=1)>]
member this.Name : string with get, set
Public Property Name As String

Valeur de propriété

String

Nom du OutputCacheProfile.

Attributs

Exemples

L'exemple de code suivant montre comment utiliser la propriété Name.


// Get the current Name.
String nameValue = 
    outputCacheProfile.Name;

// Set the Name.
outputCacheProfile.Name = 
    string.Empty;
  ' Get the current Name.
  Dim nameValue As String = _
  outputCacheProfile.Name

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

Remarques

Vous utilisez la Name propriété pour affecter une valeur à l’attribut CacheProfile de la @ OutputCache directive si vous souhaitez appliquer les OutputCacheProfile valeurs à une page ou à un contrôle.

S’applique à