語言

TypeDescriptorPermissionFlags 列舉

定義

警告

Code Access Security is not supported or honored by the runtime.

定義類型描述項的許可權設定。

此列舉支援其成員值的位元組合。

public enum class TypeDescriptorPermissionFlags
[System.Flags]
[System.Obsolete("Code Access Security is not supported or honored by the runtime.", DiagnosticId="SYSLIB0003", UrlFormat="https://aka.ms/dotnet-warnings/{0}")]
public enum TypeDescriptorPermissionFlags
[System.Flags]
[System.Serializable]
public enum TypeDescriptorPermissionFlags
[System.Flags]
public enum TypeDescriptorPermissionFlags
[<System.Flags>]
[<System.Obsolete("Code Access Security is not supported or honored by the runtime.", DiagnosticId="SYSLIB0003", UrlFormat="https://aka.ms/dotnet-warnings/{0}")>]
type TypeDescriptorPermissionFlags = 
[<System.Flags>]
[<System.Serializable>]
type TypeDescriptorPermissionFlags = 
[<System.Flags>]
type TypeDescriptorPermissionFlags = 
Public Enum TypeDescriptorPermissionFlags
繼承
TypeDescriptorPermissionFlags
屬性

欄位

名稱 值 Description
NoFlags 0

型別描述符上沒有設定任何權限旗標。

RestrictedRegistrationAccess 1

型別描述符可從部分受信任的程式碼中呼叫。

備註

注意事項

.NET Framework 和 .NET 的所有版本中,代碼存取安全性(CAS)已被棄用。 最新版本的 .NET 不會接受 CAS 註釋,如果使用 CAS 相關 API,則會產生錯誤。 開發人員應尋求其他方法來完成安全任務。

適用於