Bagikan melalui


OutputCacheProfile.Name Properti

Definisi

Mendapatkan atau mengatur OutputCacheProfile nama.

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

Nilai Properti

Nama.OutputCacheProfile

Atribut

Contoh

Contoh kode berikut menunjukkan cara menggunakan Name properti .


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

Keterangan

Anda menggunakan Name untuk menetapkan nilai ke CacheProfile atribut @ OutputCache direktif jika Anda ingin menerapkan nilai ke OutputCacheProfile halaman atau kontrol.

Berlaku untuk