ControlCachePolicy.ProviderName 属性
定义
获取或设置与控件实例关联的输出缓存提供程序的名称,。Gets or sets the name of the output-cache provider that is associated with a control instance.
public:
property System::String ^ ProviderName { System::String ^ get(); void set(System::String ^ value); };
public string ProviderName { get; set; }
member this.ProviderName : string with get, set
Public Property ProviderName As String
属性值
提供程序的名称。The name of the provider.
例外
未找到提供程序名称。The provider name was not found.
尝试在 ProviderName 事件期间或之后设置 PreRender 属性。An attempt was made to set the ProviderName property during or after the PreRender event.
注解
ProviderName属性使您可以使用实例指定与控件关联的当前输出缓存提供程序 ControlCachePolicy 。The ProviderName property enables you to specify the current output-cache provider that is associated with a control, by using the ControlCachePolicy instance. 此属性只能 PreRender 在控件生命周期中发生事件之前设置。This property can be set only before the PreRender event occurs in the control life cycle.