ResourceConsumptionAttribute コンストラクタ (ResourceScope)
アセンブリ: mscorlib (mscorlib.dll 内)


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 によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。


ResourceConsumptionAttribute コンストラクタ (ResourceScope, ResourceScope)
アセンブリ: mscorlib (mscorlib.dll 内)

Dim resourceScope As ResourceScope Dim consumptionScope As ResourceScope Dim instance As New ResourceConsumptionAttribute(resourceScope, consumptionScope)
public ResourceConsumptionAttribute (
ResourceScope resourceScope,
ResourceScope consumptionScope
)
public:
ResourceConsumptionAttribute (
ResourceScope resourceScope,
ResourceScope consumptionScope
)
public ResourceConsumptionAttribute (
ResourceScope resourceScope,
ResourceScope consumptionScope
)
public function ResourceConsumptionAttribute ( resourceScope : ResourceScope, consumptionScope : ResourceScope )

ResourceExposureAttribute 属性で None のスコープが指定されている場合、ResourceConsumptionAttribute 属性では、consumptionScope パラメータの値を指定して、消費するリソースとその消費方法を指定する必要があります。
consumptionScope で指定されるスコープは、resourceScope で指定されるスコープ以下である必要があります。たとえば、Process スコープは Process スコープまたは AppDomain スコープとして消費できますが、Machine スコープとしては消費できません。

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 によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。


ResourceConsumptionAttribute コンストラクタ

名前 | 説明 |
---|---|
ResourceConsumptionAttribute (ResourceScope) | リソースが消費されるスコープを指定して、ResourceConsumptionAttribute クラスの新しいインスタンスを初期化します。 |
ResourceConsumptionAttribute (ResourceScope, ResourceScope) | リソースが消費されるスコープとリソースが公開されるスコープを指定して、ResourceConsumptionAttribute クラスの新しいインスタンスを初期化します。 |

- ResourceConsumptionAttribute コンストラクタのページへのリンク