通过


PersonalizationProvider.ApplicationName 属性

定义

在派生类中重写时,获取或设置为提供程序配置的应用程序的名称。

public:
 abstract property System::String ^ ApplicationName { System::String ^ get(); void set(System::String ^ value); };
public abstract string ApplicationName { get; set; }
member this.ApplicationName : string with get, set
Public MustOverride Property ApplicationName As String

属性值

为个性化设置提供程序配置的应用程序。

注解

如果未在配置文件中使用 用于 WebParts(ASP.NET 设置架构)属性个性化设置的提供程序元素 指定应用程序名称,则使用该属性的值 ApplicationVirtualPath

注意

由于单个默认个性化设置提供程序实例用于对象提供 HttpApplication 的所有请求,因此可以同时执行多个请求,每次尝试设置 ApplicationName 属性值。 对于多个写入,该 ApplicationName 属性不是线程安全的,并且更改 ApplicationName 属性值可能会导致应用程序的多个用户出现意外行为。 建议避免代码允许用户设置属性, ApplicationName 除非需要。 ApplicationName例如,在管理多个应用程序的个性化数据的管理应用程序中,可能需要设置该属性。

适用于