IsolatedStorageFilePermission 類別
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
警告
Code Access Security is not supported or honored by the runtime.
規定允許使用私有虛擬檔案系統的範圍。 此類別無法獲得繼承。
public ref class IsolatedStorageFilePermission sealed : System::Security::Permissions::IsolatedStoragePermission
[System.Obsolete("Code Access Security is not supported or honored by the runtime.", DiagnosticId="SYSLIB0003", UrlFormat="https://aka.ms/dotnet-warnings/{0}")]
public sealed class IsolatedStorageFilePermission : System.Security.Permissions.IsolatedStoragePermission
[System.Serializable]
public sealed class IsolatedStorageFilePermission : System.Security.Permissions.IsolatedStoragePermission
[System.Serializable]
[System.Runtime.InteropServices.ComVisible(true)]
public sealed class IsolatedStorageFilePermission : System.Security.Permissions.IsolatedStoragePermission
public sealed class IsolatedStorageFilePermission : System.Security.Permissions.IsolatedStoragePermission
[<System.Obsolete("Code Access Security is not supported or honored by the runtime.", DiagnosticId="SYSLIB0003", UrlFormat="https://aka.ms/dotnet-warnings/{0}")>]
type IsolatedStorageFilePermission = class
inherit IsolatedStoragePermission
[<System.Serializable>]
type IsolatedStorageFilePermission = class
inherit IsolatedStoragePermission
[<System.Serializable>]
[<System.Runtime.InteropServices.ComVisible(true)>]
type IsolatedStorageFilePermission = class
inherit IsolatedStoragePermission
type IsolatedStorageFilePermission = class
inherit IsolatedStoragePermission
Public NotInheritable Class IsolatedStorageFilePermission
Inherits IsolatedStoragePermission
- 繼承
- 屬性
備註
注意事項
.NET Framework 和 .NET 的所有版本中,代碼存取安全性(CAS)已被棄用。 最新版本的 .NET 不會接受 CAS 註釋,如果使用 CAS 相關 API,則會產生錯誤。 開發人員應尋求其他方法來完成安全任務。
通用語言執行時(CLR)使用此類別來控制對隔離儲存的存取。
隔離儲存會為應用程式或元件創造獨特的儲存區域。 它提供了真正的隔離,因為應用程式的身份會唯一決定虛擬檔案系統的根節點,只有該應用程式能存取該系統。 因此,每個應用程式都會自動分配自己的檔案區域。 這個檔案區域與其他應用程式完全隔離,對該應用程式而言是私有的。
Note
使用、AssertPermitOnly或增加使用量或配額的堆疊修正值則不會有影響Deny。 使用量與配額均由證據決定,且不對需求進行堆疊行走,使上述操作無效。
建構函式
| 名稱 | Description |
|---|---|
| IsolatedStorageFilePermission(PermissionState) |
已淘汰.
以完全受限或非受限權限初始化該類別的新 IsolatedStorageFilePermission 實例。 |
屬性
| 名稱 | Description |
|---|---|
| UsageAllowed |
已淘汰.
取得或設定允許的隔離儲存類型。 (繼承來源 IsolatedStoragePermission) |
| UserQuota |
已淘汰.
取得或設定每個用戶總商店規模的配額。 (繼承來源 IsolatedStoragePermission) |
方法
| 名稱 | Description |
|---|---|
| Assert() |
已淘汰.
宣告呼叫程式碼可透過呼叫此方法的程式碼存取受權限要求保護的資源,即使堆疊中較高的呼叫者尚未獲得存取該資源的權限。 使用 Assert() 可能會造成安全問題。 (繼承來源 CodeAccessPermission) |
| Copy() |
已淘汰.
建立並回傳與目前權限相同的副本。 |
| Demand() |
已淘汰.
若呼叫堆疊中所有較高的呼叫者尚未獲得當前實例指定的權限,則在執行時強制執行 a SecurityException 。 (繼承來源 CodeAccessPermission) |
| Deny() |
已淘汰.
已淘汰.
防止呼叫堆疊中較高的呼叫者使用呼叫此方法的程式碼來存取目前實例指定的資源。 (繼承來源 CodeAccessPermission) |
| Equals(Object) |
已淘汰.
判斷指定的 CodeAccessPermission 物件是否等於當前 CodeAccessPermission的 。 (繼承來源 CodeAccessPermission) |
| FromXml(SecurityElement) |
已淘汰.
從 XML 編碼中重建具有指定狀態的權限。 (繼承來源 IsolatedStoragePermission) |
| GetHashCode() |
已淘汰.
取得適合用於雜湊演算法及資料結構(如雜湊表)的物件雜湊碼 CodeAccessPermission 。 (繼承來源 CodeAccessPermission) |
| GetType() |
已淘汰.
取得目前實例的 Type。 (繼承來源 Object) |
| Intersect(IPermission) |
已淘汰.
建立並回傳一個權限,該權限是目前權限與指定權限的交集。 |
| IsSubsetOf(IPermission) |
已淘汰.
判斷目前權限是否屬於指定權限的子集。 |
| IsUnrestricted() |
已淘汰.
回傳一個值,表示目前權限是否為無限制。 (繼承來源 IsolatedStoragePermission) |
| MemberwiseClone() |
已淘汰.
建立目前 Object的淺層複本。 (繼承來源 Object) |
| PermitOnly() |
已淘汰.
防止呼叫堆疊中較高的呼叫者使用呼叫此方法的程式碼存取除當前實例指定的資源外的所有資源。 (繼承來源 CodeAccessPermission) |
| ToString() |
已淘汰.
建立並回傳當前權限物件的字串表示。 (繼承來源 CodeAccessPermission) |
| ToXml() |
已淘汰.
建立權限及其當前狀態的 XML 編碼。 |
| ToXml() |
已淘汰.
建立權限及其當前狀態的 XML 編碼。 (繼承來源 IsolatedStoragePermission) |
| Union(IPermission) |
已淘汰.
建立一個權限,結合目前權限與指定權限。 |