ApplicationScopedSettingAttribute クラス
アセンブリ: System (system.dll 内)

<AttributeUsageAttribute(AttributeTargets.Property)> _ Public NotInheritable Class ApplicationScopedSettingAttribute Inherits SettingAttribute
[AttributeUsageAttribute(AttributeTargets.Property)] public sealed class ApplicationScopedSettingAttribute : SettingAttribute
[AttributeUsageAttribute(AttributeTargets::Property)] public ref class ApplicationScopedSettingAttribute sealed : public SettingAttribute

アプリケーション設定プロパティのスコープは、アプリケーション レベルまたはユーザー レベルに基づいています。カテゴリが示すように、アプリケーション スコープの設定プロパティは、アプリケーションのすべてのユーザーに対して同じ値を提供しますが、ユーザー スコープのプロパティは、アプリケーションのユーザーごとに個別の値を提供します。
ApplicationScopedSettingAttribute は、プロパティがアプリケーション レベルの設定と見なされること、およびこれに応じて設定プロバイダが適切なストレージを決定する必要があることを示します。
スコープ属性は、設定プロパティごとに必要です。プロパティに ApplicationScopedSettingAttribute または UserScopedSettingAttribute が適用されない場合、そのプロパティは設定プロバイダで認識されず、シリアル化されることもありません。ただし、両方の属性を同じプロパティに適用することはできません。両方の属性を適用しようとすると、ConfigurationErrorsException がスローされます。

System.Attribute
System.Configuration.SettingAttribute
System.Configuration.ApplicationScopedSettingAttribute


Windows 98, Windows 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
開発プラットフォームの中には、.NET Framework によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。


- ApplicationScopedSettingAttribute クラスのページへのリンク