ProfileUsageAttribute 類別
描述在 ASP.NET 設定檔中如何支援屬性。
命名空間: System.ServiceModel.DomainServices.Server.ApplicationServices
組件: System.ServiceModel.DomainServices.Server (於 system.servicemodel.domainservices.server.dll)
使用方式
'用途
Dim instance As ProfileUsageAttribute
語法
'宣告
<AttributeUsageAttribute(AttributeTargets.Property, AllowMultiple:=False, Inherited:=False)> _
Public NotInheritable Class ProfileUsageAttribute
Inherits Attribute
[AttributeUsageAttribute(AttributeTargets.Property, AllowMultiple=false, Inherited=false)]
public sealed class ProfileUsageAttribute : Attribute
[AttributeUsageAttribute(AttributeTargets::Property, AllowMultiple=false, Inherited=false)]
public ref class ProfileUsageAttribute sealed : public Attribute
/** @attribute AttributeUsageAttribute(AttributeTargets.Property, AllowMultiple=false, Inherited=false) */
public final class ProfileUsageAttribute extends Attribute
AttributeUsageAttribute(AttributeTargets.Property, AllowMultiple=false, Inherited=false)
public final class ProfileUsageAttribute extends Attribute
備註
AuthenticationBase 會使用這個屬性決定在支援資料的 ASP.NET 設定檔中讀取或寫入的方式。如果設定檔中有同名稱的屬性 (Property) 存在,您就不必使用這個屬性 (Attribute)。如果設定檔中沒有屬性,則您應該將 IsExcluded 屬性設定為 true。如果屬性的名稱與支援該屬性的設定檔值不相同,則您應該將 Alias 屬性設定為設定檔中支援值的名稱。這個屬性 (Attribute) 可以搭配延伸 UserBase 的使用者實體使用。
繼承階層
System.Object
System.Attribute
System.ServiceModel.DomainServices.Server.ApplicationServices.ProfileUsageAttribute
執行緒安全性
任何這個類型的公用靜態 (在 Visual Basic 中為 共用) 成員都具備執行緒安全。 不保證任何執行個體成員安全執行緒。
平台
開發平台
Windows XP Home Edition, Windows XP Professional, Windows Server 2003 、Windows Server 2008 和 Windows 2000
目標平台
另請參閱
參考
ProfileUsageAttribute 成員
System.ServiceModel.DomainServices.Server.ApplicationServices 命名空間