OutputCacheProfile.Name Vlastnost

Definice

Získá nebo nastaví OutputCacheProfile název.

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

Hodnota vlastnosti

String

Název OutputCacheProfile .

Atributy

Příklady

Následující příklad kódu ukazuje, jak použít Name vlastnost.


// 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

Poznámky

Pokud chcete hodnoty použít OutputCacheProfile na stránku nebo ovládací prvek, použijte Name k přiřazení hodnoty CacheProfile atributu @ OutputCache direktivy.

Platí pro