IsolatedStorage.ApplicationIdentity 属性
定义
获取用于确定独立存储范围的应用程序标识。Gets an application identity that scopes isolated storage.
public:
property System::Object ^ ApplicationIdentity { System::Object ^ get(); };
public object ApplicationIdentity { get; }
[System.Runtime.InteropServices.ComVisible(false)]
public object ApplicationIdentity { get; }
member this.ApplicationIdentity : obj
[<System.Runtime.InteropServices.ComVisible(false)>]
member this.ApplicationIdentity : obj
Public ReadOnly Property ApplicationIdentity As Object
属性值
表示 Object 标识的 Application。An Object that represents the Application identity.
- 属性
例外
该代码缺少访问此对象所需的 SecurityPermission。The code lacks the required SecurityPermission to access this object. 这些权限由运行时基于安全策略授予。These permissions are granted by the runtime based on security policy.
IsolatedStorage 对象没有被应用程序 IsolatedStorageScope 隔离。The IsolatedStorage object is not isolated by the application IsolatedStorageScope.
注解
由于应用程序的定义包括与应用程序关联的所有程序集,因此可以使用这种类型的标识来确保只有与应用程序关联的程序集才有权访问独立存储。Since the definition of an application includes all assemblies associated with the application, you can use this type of identity to ensure that only assemblies associated with the application have access to the isolated storage.