Sys.Services ProfileService properties 字段

更新:2007 年 11 月

包含加载的配置文件数据。

Sys.Services.ProfileService.properties.FieldName; 

备注

可以直接从 properties 字段访问加载的配置文件数据。

说明:

properties 字段中的元素可以是 ProfileGroup 类型的属性组。如果是这种情况,则相关属性显示为子属性。有关更多信息,请参见 Sys.Services.ProfileGroup 类

示例

下面的示例演示如何使用 properties 字段访问当前经过身份验证的用户的配置文件数据。此代码摘自 Sys.Services.ProfileService 类概述中的一个完整示例。

    Sys.Services.ProfileService.properties.Backgroundcolor = 
        GetElementById("bgcolor").value;
    
    Sys.Services.ProfileService.properties.Foregroundcolor =
        GetElementById("fgcolor").value; 

请参见

概念

Sys.Services.AuthenticationService 类

Sys.Net.WebServiceProxy 类