SecurityCriticalScope Enum

Definition

Warning

This API is now obsolete.

指定 SecurityCriticalAttribute 的範圍。Specifies the scope of a SecurityCriticalAttribute.

public enum class SecurityCriticalScope
[System.Obsolete("SecurityCriticalScope is only used for .NET 2.0 transparency compatibility.")]
public enum SecurityCriticalScope
public enum SecurityCriticalScope
type SecurityCriticalScope = 
Public Enum SecurityCriticalScope
Inheritance
SecurityCriticalScope
Attributes

Fields

Everything 1

屬性會套用到所有其後的程式碼。The attribute applies to all code that follows it.

Explicit 0

屬性只會套用到立即目標。The attribute applies only to the immediate target.

Remarks

安全性關鍵程式碼是保護敏感性資源的任何程式碼,並藉由執行必要的權限提高作業,向不受信任或部分信任的程式碼公開對資源的代理存取。Security-critical code is any code that protects sensitive resources and exposes brokered access to the resource to untrusted or partially trusted code by performing the necessary elevation of privilege operations.

Applies to