OutputCacheProfile.Name 属性

定义

获取或设置 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

属性值

String

OutputCacheProfile 名称。

属性

示例

下面的代码示例说明如何使用 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

注解

如果要将值应用于页面或控件,请使用Name向指令的属性@ OutputCache赋值。CacheProfile OutputCacheProfile

适用于