語言

UIPermissionClipboard 列舉

定義

警告

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

指定允許呼叫程式代碼的剪貼簿存取類型。

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

欄位

名稱 值 Description
NoClipboard 0

無法使用剪貼簿。

OwnClipboard 1

將資料放入剪貼簿(Copy, Cut)是不受限制的。 接受 Paste的內建控制項如文字框可以接受剪貼簿資料,但必須程式化讀取剪貼簿的使用者控制項則無法。

AllClipboard 2

剪貼板可以不受限制地使用。

備註

注意事項

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

此枚舉被 使用 UIPermission。

適用於

另請參閱