System.Security Namespace

System.Security 命名空間提供 Common Language Runtime 安全性系統的基礎結構,包含使用權限的基底類別 (Base class)。 The System.Security namespace provides the underlying structure of the common language runtime security system, including base classes for permissions.

類別

AllowPartiallyTrustedCallersAttribute

允許組件由部分信任程式碼呼叫。Allows an assembly to be called by partially trusted code. 如果少了這項宣告,則只有完全受信任的呼叫端才能使用該組件。Without this declaration, only fully trusted callers are able to use the assembly. 這個類別無法被繼承。This class cannot be inherited.

CodeAccessPermission

定義所有程式碼存取權限的基礎結構。Defines the underlying structure of all code access permissions.

HostProtectionException

在偵測到拒絕的主機資源時所擲回的例外狀況。The exception that is thrown when a denied host resource is detected.

HostSecurityManager

允許控制及自訂應用程式定義域的安全性行為。Allows the control and customization of security behavior for application domains.

NamedPermissionSet

定義具有名稱和描述與其相關聯的權限集。Defines a permission set that has a name and description associated with it. 這個類別無法被繼承。This class cannot be inherited.

PermissionSet

代表可以包含許多不同類型權限的集合。Represents a collection that can contain many different types of permissions.

ReadOnlyPermissionSet

表示可以包含許多不同類型權限的唯讀集合。Represents a read-only collection that can contain many different types of permissions.

SecureString

代表應該將文字保密,例如於不再使用時將它從電腦記憶體刪除。Represents text that should be kept confidential, such as by deleting it from computer memory when no longer needed. 這個類別無法被繼承。This class cannot be inherited.

SecureStringMarshal

提供配置 Unmanaged 記憶體和複製 Unmanaged 記憶體區塊的方法集合。Provides a collection of methods for allocating unmanaged memory and copying unmanaged memory blocks.

SecurityContext

封裝並散佈跨執行緒傳送之執行內容的所有安全性相關資料。Encapsulates and propagates all security-related data for execution contexts transferred across threads. 這個類別無法被繼承。This class cannot be inherited.

SecurityCriticalAttribute

指定執行重視安全性之作業的程式碼或組件。Specifies that code or an assembly performs security-critical operations.

SecurityElement

代表用於編碼安全性物件的 XML 物件模型。Represents the XML object model for encoding security objects. 這個類別無法被繼承。This class cannot be inherited.

SecurityException

當偵測到安全性錯誤時所擲回的例外狀況。The exception that is thrown when a security error is detected.

SecurityManager

提供主要存取點給與安全性系統互動的類別。Provides the main access point for classes interacting with the security system. 這個類別無法被繼承。This class cannot be inherited.

SecurityRulesAttribute

表示 Common Language Runtime 應針對組件強制執行的一組安全性規則。Indicates the set of security rules the common language runtime should enforce for an assembly.

SecuritySafeCriticalAttribute

將型別或成員識別為重視安全性而且可由透明程式碼進行安全的存取。Identifies types or members as security-critical and safely accessible by transparent code.

SecurityState

提供基底類別,目前是要向 AppDomainManager 物件要求動作的安全性狀態。Provides a base class for requesting the security status of an action from the AppDomainManager object.

SecurityTransparentAttribute

指定組件不可以導致權限的提升。Specifies that an assembly cannot cause an elevation of privilege.

SecurityTreatAsSafeAttribute

識別組件內的透明程式碼可以存取哪些非公用 SecurityCriticalAttribute 成員。Identifies which of the nonpublic SecurityCriticalAttribute members are accessible by transparent code within the assembly.

SuppressUnmanagedCodeSecurityAttribute

允許 Managed 程式碼的呼叫進入 Unmanaged 程式碼,而不需堆疊查核行程 (Stack Walk)。Allows managed code to call into unmanaged code without a stack walk. 這個類別無法被繼承。This class cannot be inherited.

UnverifiableCodeAttribute

標記含有未經驗證的程式碼的模組。Marks modules containing unverifiable code. 這個類別無法被繼承。This class cannot be inherited.

VerificationException

例外狀況,是當安全性原則要求程式碼為型別安全 (Type-Safe) 而驗證處理序無法驗證程式碼為型別安全時被擲回。The exception that is thrown when the security policy requires code to be type safe and the verification process is unable to verify that the code is type safe.

XmlSyntaxException

當解析 XML 時發生語法錯誤,所擲回的例外狀況。The exception that is thrown when there is a syntax error in XML parsing. 這個類別無法被繼承。This class cannot be inherited.

介面

IEvidenceFactory

取得物件的 EvidenceGets an object's Evidence.

IPermission

定義由使用權限類型實作的方法。Defines methods implemented by permission types.

ISecurityEncodable

定義將使用權限物件狀態與 XML 項目表示相互轉換的方法。Defines the methods that convert permission object state to and from XML element representation.

ISecurityPolicyEncodable

支援將使用權限物件狀態與 XML 項目表示相互轉換的方法。Supports the methods that convert permission object state to and from an XML element representation.

IStackWalk

管理堆疊查核行程 (Stack Walk),決定呼叫堆疊中所有的呼叫端是否具有存取受保護資源的使用權限。Manages the stack walk that determines whether all callers in the call stack have the required permissions to access a protected resource.

列舉

HostSecurityManagerOptions

指定主機安全性管理員所使用的安全性原則元件。Specifies the security policy components to be used by the host security manager.

ManifestKinds

代表套用簽章資訊的資訊清單類型。Represents the type of manifest that the signature information applies to.

PartialTrustVisibilityLevel

針對已標記 AllowPartiallyTrustedCallersAttribute (APTCA) 屬性的程式碼,指定預設的部分信任可視性。Specifies the default partial-trust visibility for code that is marked with the AllowPartiallyTrustedCallersAttribute (APTCA) attribute.

PolicyLevelType

指定 Managed 程式碼原則層級的型別。Specifies the type of a managed code policy level.

SecurityContextSource

識別安全性內容的來源。Identifies the source for the security context.

SecurityCriticalScope

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

SecurityRuleSet

識別 Common Language Runtime 應針對組件強制執行的一組安全性規則。Identifies the set of security rules the common language runtime should enforce for an assembly.

SecurityZone

定義與安全性原則所使用的安全性區域 (Security Zone) 對應的整數值。Defines the integer values corresponding to security zones used by security policy.