ResourceConsumptionAttribute Konstruktory

Definice

Inicializuje novou instanci ResourceConsumptionAttribute třídy.

Přetížení

Name Description
ResourceConsumptionAttribute(ResourceScope)

Toto rozhraní API podporuje produktovou infrastrukturu a není určené k použití přímo z uživatelského kódu.

Inicializuje novou instanci ResourceConsumptionAttribute třídy určující rozsah spotřebovaného prostředku.

ResourceConsumptionAttribute(ResourceScope, ResourceScope)

Toto rozhraní API podporuje produktovou infrastrukturu a není určené k použití přímo z uživatelského kódu.

Inicializuje novou instanci ResourceConsumptionAttribute třídy určující rozsah spotřebovaného prostředku a rozsah jeho využití.

ResourceConsumptionAttribute(ResourceScope)

Zdroj:
ResourceConsumptionAttribute.cs
Zdroj:
ResourceConsumptionAttribute.cs
Zdroj:
ResourceConsumptionAttribute.cs
Zdroj:
ResourceConsumptionAttribute.cs
Zdroj:
ResourceConsumptionAttribute.cs

Inicializuje novou instanci ResourceConsumptionAttribute třídy určující rozsah spotřebovaného prostředku.

Toto rozhraní API podporuje produktovou infrastrukturu a není určené k použití přímo z uživatelského kódu.

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)

Parametry

resourceScope
ResourceScope

Spotřebovaný ResourceScope prostředek.

Platí pro

ResourceConsumptionAttribute(ResourceScope, ResourceScope)

Zdroj:
ResourceConsumptionAttribute.cs
Zdroj:
ResourceConsumptionAttribute.cs
Zdroj:
ResourceConsumptionAttribute.cs
Zdroj:
ResourceConsumptionAttribute.cs
Zdroj:
ResourceConsumptionAttribute.cs

Inicializuje novou instanci ResourceConsumptionAttribute třídy určující rozsah spotřebovaného prostředku a rozsah jeho využití.

Toto rozhraní API podporuje produktovou infrastrukturu a není určené k použití přímo z uživatelského kódu.

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)

Parametry

resourceScope
ResourceScope

Spotřebovaný ResourceScope prostředek.

consumptionScope
ResourceScope

Používá ResourceScope ho tento člen.

Poznámky

ResourceExposureAttribute Pokud atribut určuje rozsah None, pak ResourceConsumptionAttribute atribut musí zadat prostředek, který spotřebuje a jak ho spotřebuje, zadáním hodnoty parametruconsumptionScope.

Rozsah určený hodnotou consumptionScope by měl být menší nebo roven oboru určenému oborem resourceScope. Obor může být například Process využit jako Process obor nebo AppDomain obor, ale ne jako Machine obor.

Platí pro