ResourceConsumptionAttribute 생성자
정의
중요
일부 정보는 릴리스되기 전에 상당 부분 수정될 수 있는 시험판 제품과 관련이 있습니다. Microsoft는 여기에 제공된 정보에 대해 어떠한 명시적이거나 묵시적인 보증도 하지 않습니다.
ResourceConsumptionAttribute 클래스의 새 인스턴스를 초기화합니다.
오버로드
| Name | Description |
|---|---|
| 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 범위로 ProcessAppDomain 사용할 수 있지만 범위로 사용할 수는 Machine 없습니다.