ResourceConsumptionAttribute コンストラクター
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
ResourceConsumptionAttribute クラスの新しいインスタンスを初期化します。
オーバーロード
| 名前 | 説明 |
|---|---|
| ResourceConsumptionAttribute(ResourceScope) |
この API は製品インフラストラクチャをサポートします。コードから直接使用するものではありません。 使用するリソースのスコープを指定して、 ResourceConsumptionAttribute クラスの新しいインスタンスを初期化します。 |
| ResourceConsumptionAttribute(ResourceScope, ResourceScope) |
この API は製品インフラストラクチャをサポートします。コードから直接使用するものではありません。 ResourceConsumptionAttribute クラスの新しいインスタンスを初期化します。使用されるリソースのスコープと、その使用方法のスコープを指定します。 |
ResourceConsumptionAttribute(ResourceScope)
使用するリソースのスコープを指定して、 ResourceConsumptionAttribute クラスの新しいインスタンスを初期化します。
この API は製品インフラストラクチャをサポートします。コードから直接使用するものではありません。
public:
ResourceConsumptionAttribute(System::Runtime::Versioning::ResourceScope resourceScope);
public ResourceConsumptionAttribute(System.Runtime.Versioning.ResourceScope resourceScope);
new System.Runtime.Versioning.ResourceConsumptionAttribute : System.Runtime.Versioning.ResourceScope -> System.Runtime.Versioning.ResourceConsumptionAttribute
Public Sub New (resourceScope As ResourceScope)
パラメーター
- resourceScope
- ResourceScope
使用されるリソースの ResourceScope 。
適用対象
ResourceConsumptionAttribute(ResourceScope, ResourceScope)
ResourceConsumptionAttribute クラスの新しいインスタンスを初期化します。使用されるリソースのスコープと、その使用方法のスコープを指定します。
この API は製品インフラストラクチャをサポートします。コードから直接使用するものではありません。
public:
ResourceConsumptionAttribute(System::Runtime::Versioning::ResourceScope resourceScope, System::Runtime::Versioning::ResourceScope consumptionScope);
public ResourceConsumptionAttribute(System.Runtime.Versioning.ResourceScope resourceScope, System.Runtime.Versioning.ResourceScope consumptionScope);
new System.Runtime.Versioning.ResourceConsumptionAttribute : System.Runtime.Versioning.ResourceScope * System.Runtime.Versioning.ResourceScope -> System.Runtime.Versioning.ResourceConsumptionAttribute
Public Sub New (resourceScope As ResourceScope, consumptionScope As ResourceScope)
パラメーター
- resourceScope
- ResourceScope
使用されるリソースの ResourceScope 。
- consumptionScope
- ResourceScope
このメンバーによって使用される ResourceScope 。
注釈
ResourceExposureAttribute属性がNoneのスコープを指定する場合、ResourceConsumptionAttribute属性は、consumptionScope パラメーターの値を指定することによって、使用するリソースとその使用方法を指定する必要があります。
consumptionScopeで指定するスコープは、resourceScopeで指定されたスコープ以下にする必要があります。 たとえば、 Process スコープは、 Process または AppDomain スコープとして使用できますが、 Machine スコープとして使用することはできません。