StorePermissionとは? わかりやすく解説

StorePermission クラス

メモ : このクラスは、.NET Framework version 2.0新しく追加されたものです。

X.509 証明書格納しているストアへのアクセス権制御します。このクラス継承できません。

名前空間: System.Security.Permissions
アセンブリ: System (system.dll 内)
構文構文

<SerializableAttribute> _
Public NotInheritable Class
 StorePermission
    Inherits CodeAccessPermission
    Implements IUnrestrictedPermission
Dim instance As StorePermission
[SerializableAttribute] 
public sealed class StorePermission : CodeAccessPermission,
 IUnrestrictedPermission
[SerializableAttribute] 
public ref class StorePermission sealed : public
 CodeAccessPermission, IUnrestrictedPermission
/** @attribute SerializableAttribute() */ 
public final class StorePermission extends
 CodeAccessPermission implements IUnrestrictedPermission
SerializableAttribute 
public final class StorePermission extends
 CodeAccessPermission implements IUnrestrictedPermission
解説解説
使用例使用例

StorePermission クラスメンバ使用する方法次のコード例示します

Imports System
Imports System.Security.Permissions
Imports System.Security.Cryptography
Imports System.Security.Cryptography.X509Certificates
Imports System.Security
Imports System.IO

<Assembly: StorePermissionAttribute(SecurityAction.RequestMinimum, Flags:=StorePermissionFlags.DeleteStore)>
 

Public Class X509store2

    Public Shared Sub Main(ByVal
 args() As String)
        Console.WriteLine("Creating a permission with Flags =
 OpenStore.")
        Dim sp As New System.Security.Permissions.StorePermission(StorePermissionFlags.OpenStore)
        'Create a new X509 store named teststore from the local certificate
 store.
        'You must put in a valid path to a certificate in the following
 constructor.
        Dim certificate As New
 X509Certificate2("c:\certificates\*****.cer")
        ' Deny the permission to open a store.
        sp.Deny()
        ' The following code results in an exception due to an attempt
 to open a store.
        AddToStore(certificate)
        ' Remove the deny for opening a store.
        CodeAccessPermission.RevertDeny()
        ' The following code results in an exception due to an attempt
 to add a certificate.
        ' The exception is thrown due to a StorePermissionAttribute
 on the method denying AddToStore permission.
        AddToStore(certificate)
        ' The current code is not affected by the attribute in the previously
 called method, so the following
        ' intructions execute without an exception.
        Dim store As New
 X509Store("teststore", StoreLocation.CurrentUser)
        store.Open(OpenFlags.ReadWrite)
        store.Add(certificate)

        ' Demonstrate the behavior of the class members.
        ShowMembers()

        Console.WriteLine("Press the Enter key to exit.")
        Console.ReadKey()
        Return

    End Sub 'Main

    'Deny the permission the ability to add to a store.
    <StorePermission(SecurityAction.Deny, Flags:=StorePermissionFlags.AddToStore)>
 _
    Private Shared Sub AddToStore(ByVal
 cert As X509Certificate2)
        Try
            Dim store As New
 X509Store("teststore", StoreLocation.CurrentUser)
            store.Open(OpenFlags.ReadWrite)
            ' The following attempt to add a certificate results in
 an exception being thrown.
            store.Add(cert)
            Return
        Catch e As SecurityException
            Console.WriteLine("Security exception thrown when
 attempting: " + _
            CType(e.FirstPermissionThatFailed, System.Security.Permissions.StorePermission).Flags)
            Return
        End Try

    End Sub 'AddToStore

    ' The following method is intended to demonstrate only the behavior
 of 
    ' StorePermission class members,and not their practical usage. 
 Most properties 
    ' and methods in this class are used for the resolution and enforcement
 of
    ' security policy by the security infrastructure code.
    Private Shared Sub ShowMembers()
        Console.WriteLine("Creating first permission with Flags
 = OpenStore.")

        Dim sp1 As New System.Security.Permissions.StorePermission(StorePermissionFlags.OpenStore)

        Console.WriteLine("Creating second permission with Flags
 = AllFlags.")

        Dim sp2 As New System.Security.Permissions.StorePermission(StorePermissionFlags.AllFlags)

        Console.WriteLine("Creating third permission as Unrestricted.")
        Dim sp3 As New System.Security.Permissions.StorePermission(PermissionState.Unrestricted)
        Console.WriteLine("Creating fourth permission with a permission
 state of none.")

        Dim sp4 As New System.Security.Permissions.StorePermission(PermissionState.None)
        Dim rc As Boolean
 = sp2.IsSubsetOf(sp3)
        Console.WriteLine("Is the permission with complete store
 access (AllFlags) a subset of " + _
        vbLf + vbTab + "the permission with an Unrestricted permission
 state? " + _
        IIf(rc, "Yes", "No"))
        rc = sp1.IsSubsetOf(sp2)
        Console.WriteLine("Is the permission with OpenStore access
 a subset of the permission with " + _
        vbLf + vbTab + "complete store access (AllFlags)? "
 + IIf(rc, "Yes", "No"))
        rc = sp3.IsUnrestricted()
        Console.WriteLine("Is the third permission unrestricted?
 " + IIf(rc, "Yes", "No"))
        Console.WriteLine("Copying the second permission to the
 fourth permission.")
        sp4 = CType(sp2.Copy(), System.Security.Permissions.StorePermission)
        rc = sp4.Equals(sp2)
        Console.WriteLine("Is the fourth permission equal to the
 second permission? " + _
        IIf(rc, "Yes", "No"))
        Console.WriteLine("Creating the intersection of the second
 and first permissions.")
        sp4 = CType(sp2.Intersect(sp1), System.Security.Permissions.StorePermission)
        Console.WriteLine("Value of the Flags property is: "
 + sp4.Flags.ToString())

        Console.WriteLine("Creating the union of the second and
 first permissions.")
        sp4 = CType(sp2.Union(sp1), System.Security.Permissions.StorePermission)
        Console.WriteLine("Result of the union of the second permission
 with the first:  " + _
        sp4.Flags)

        Console.WriteLine("Using an XML roundtrip to reset the
 fourth permission.")
        sp4.FromXml(sp2.ToXml())
        rc = sp4.Equals(sp2)
        Console.WriteLine("Does the XML roundtrip result equal
 the original permission? " + _
        IIf(rc, "Yes", "No"))
    End Sub
End Class 'X509store2
using System;
using System.Security.Permissions;
using System.Security.Cryptography;
using System.Security.Cryptography.X509Certificates;
using System.Security;
using System.IO;
[assembly:
StorePermission(SecurityAction.RequestMinimum, Flags = StorePermissionFlags.DeleteStore)]
public class X509store2
{
    public static void Main(string[]
 args)
    {
        Console.WriteLine("Creating a permission with Flags = OpenStore.");
        StorePermission sp = new StorePermission(StorePermissionFlags.OpenStore);
        //Create a new X509 store named teststore from the local certificate
 store.
        //You must put in a valid path to a certificate in the following
 constructor.
        X509Certificate2 certificate = new X509Certificate2("c:\\certificates\\*****.cer");
        //      Deny the permission to open a store.
        sp.Deny();
        // The following code results in an exception due to an attempt
 to open a store.
        AddToStore(certificate);
        // Remove the deny for opening a store.
        CodeAccessPermission.RevertDeny();
        // The following code results in an exception due to an attempt
 to add a certificate.
        // The exception is thrown due to a StorePermissionAttribute
 on the method denying AddToStore permission.
        AddToStore(certificate);
        // The current code is not affected by the attribute in the
 previously called method, so the following
        // intructions execute without an exception.
        X509Store store = new X509Store("teststore"
,
 StoreLocation.CurrentUser);
        store.Open(OpenFlags.ReadWrite);
        store.Add(certificate);

        // Demonstrate the behavior of the class members.
        ShowMembers();

        Console.WriteLine("Press the Enter key to exit.");
        Console.ReadKey();
        return;
    }
    //Deny the permission the ability to add to a store.
    [StorePermission(SecurityAction.Deny, Flags = StorePermissionFlags.AddToStore)]
    private static void
 AddToStore(X509Certificate2 cert)
    {
        try
        {
            X509Store store = new X509Store("teststore"
,
 StoreLocation.CurrentUser);

            store.Open(OpenFlags.ReadWrite);

            // The following attempt to add a certificate results in
 an exception being thrown.
            store.Add(cert);
            return;
        }
        catch (SecurityException e)
        {
            Console.WriteLine("Security exception thrown when attempting: "
 + 
                ((StorePermission)e.FirstPermissionThatFailed).Flags);
            return;
        }
    }

    // The following method is intended to demonstrate only the behavior
 of 
    // StorePermission class members,and not their practical usage.
  Most properties 
    // and methods in this class are used for the resolution and enforcement
 of
    // security policy by the security infrastructure code.
    private static void
 ShowMembers()
    {
        Console.WriteLine("Creating first permission with Flags = OpenStore.");

        StorePermission sp1 = new StorePermission(StorePermissionFlags.OpenStore);

        Console.WriteLine("Creating second permission with Flags = AllFlags.");

        StorePermission sp2 = new StorePermission(StorePermissionFlags.AllFlags);

        Console.WriteLine("Creating third permission as Unrestricted.");
        StorePermission sp3 = new StorePermission(PermissionState.Unrestricted);
        Console.WriteLine("Creating fourth permission with a permission state
 of none.");

        StorePermission sp4 = new StorePermission(PermissionState.None);
        bool rc = sp2.IsSubsetOf(sp3);
        Console.WriteLine("Is the permission with complete store access (AllFlags)
 a subset of \n" +
            "\tthe permission with an Unrestricted permission state? "
 + (rc ? "Yes" : "No"));
        rc = sp1.IsSubsetOf(sp2);
        Console.WriteLine("Is the permission with OpenStore access a subset
 of the permission with \n" +
            "\tcomplete store access (AllFlags)? " + (rc ? "Yes"
 : "No"));
        rc = sp3.IsUnrestricted();
        Console.WriteLine("Is the third permission unrestricted? " + (rc
 ? "Yes" : "No"));
        Console.WriteLine("Copying the second permission to the fourth permission.");
        sp4 = (StorePermission)sp2.Copy();
        rc = sp4.Equals(sp2);
        Console.WriteLine("Is the fourth permission equal to the second permission?
 " + (rc ? "Yes" : "No"));

        Console.WriteLine("Creating the intersection of the second and first
 permissions.");
        sp4 = (StorePermission)sp2.Intersect(sp1);
        Console.WriteLine("Value of the Flags property is: " + sp4.Flags.ToString());

        Console.WriteLine("Creating the union of the second and first permissions.");
        sp4 = (StorePermission)sp2.Union(sp1);
        Console.WriteLine("Result of the union of the second permission with
 the first:  " + sp4.Flags);

        Console.WriteLine("Using an XML roundtrip to reset the fourth permission.");
        sp4.FromXml(sp2.ToXml());
        rc = sp4.Equals(sp2);
        Console.WriteLine("Does the XML roundtrip result equal the original
 permission? " + (rc ? "Yes" : "No"));
    }
}
import System.*;
import System.Security.Permissions.*;
import System.Security.Cryptography.*;
import System.Security.Cryptography.X509Certificates.*;
import System.Security.*;
import System.IO.*;

/** @assembly StorePermission(SecurityAction.RequestMinimum,
    Flags = StorePermissionFlags.DeleteStore)
 */
public class X509store2
{
    public static void main(String[]
 args)
    {
        Console.WriteLine("Creating a permission with Flags = OpenStore.");
        StorePermission sp = new StorePermission(StorePermissionFlags.OpenStore);
        //Create a new X509 store named teststore from the local certificate
 
        // store.
        //You must put in a valid path to a certificate in the following
 
        // constructor.
        X509Certificate2 certificate =
            new X509Certificate2("c:\\certificates\\*****.cer");
        //      Deny the permission to open a store.
        sp.Deny();
        // The following code results in an exception due to an attempt
 
        // to open a store.
        AddToStore(certificate);
        // Remove the deny for opening a store.
        CodeAccessPermission.RevertDeny();
        // The following code results in an exception due to an attempt
 to 
        // add a certificate.
        // The exception is thrown due to a StorePermissionAttribute
 
        // on the method denying AddToStore permission.
        AddToStore(certificate);
        // The current code is not affected by the attribute in the
        // previously called method, so the following
        // intructions execute without an exception.
        X509Store store = new X509Store("teststore"
,
            StoreLocation.CurrentUser);
        store.Open(OpenFlags.ReadWrite);
        store.Add(certificate);
        // Demonstrate the behavior of the class members.
        ShowMembers();

        Console.WriteLine("Press the Enter key to exit.");
        Console.ReadKey();
        return;
    } //main

    //Deny the permission the ability to add to a store.
    /** @attribute StorePermission(SecurityAction.Deny, Flags =
        StorePermissionFlags.AddToStore)
     */
    private static void
 AddToStore(X509Certificate2 cert)
    {
        try
        {
            X509Store store = new X509Store("teststore"
,
                StoreLocation.CurrentUser);
            store.Open(OpenFlags.ReadWrite);
            // The following attempt to add a certificate results in
 
            // an exception being thrown.
            store.Add(cert);
            return;
        }
        catch (System.Security.SecurityException e)
        {
            Console.WriteLine("Security exception thrown when attempting: "
                + ((StorePermission)e.get_FirstPermissionThatFailed()).get_Flags());
            return;
        }
    } //AddToStore

    // The following method is intended to demonstrate only the behavior
 of 
    // StorePermission class members,and not their practical usage.
 
    // Most properties 
    // and methods in this class are used for the resolution and enforcement
 
    // of security policy by the security infrastructure code.
    private static void
 ShowMembers()
    {
        Console.WriteLine("Creating first permission with Flags = OpenStore.");
        StorePermission sp1 = new StorePermission(StorePermissionFlags.
            OpenStore);
        Console.WriteLine("Creating second permission with Flags = AllFlags.");
        StorePermission sp2 = new StorePermission(StorePermissionFlags.AllFlags);
        Console.WriteLine("Creating third permission as Unrestricted.");
        StorePermission sp3 = new StorePermission(PermissionState.Unrestricted);
        Console.WriteLine("Creating fourth permission with a permission "
            + "state of none.");
        StorePermission sp4 = new StorePermission(PermissionState.None);
        boolean rc = sp2.IsSubsetOf(sp3);
        Console.WriteLine("Is the permission with complete store access "
            + "(AllFlags) a subset of \n"
            + "\tthe permission with an Unrestricted permission state? "
            + ((rc) ? "Yes" : "No"));
        rc = sp1.IsSubsetOf(sp2);
        Console.WriteLine("Is the permission with OpenStore access "
            + "a subset of the permission with \n"
            + "\tcomplete store access (AllFlags)? "
            + ((rc) ? "Yes" : "No"));
        rc = sp3.IsUnrestricted();
        Console.WriteLine("Is the third permission unrestricted? "
            + ((rc) ? "Yes" : "No"));
        Console.WriteLine("Copying the second permission to the fourth "
            + "permission.");
        sp4 = (StorePermission)sp2.Copy();
        rc = sp4.Equals(sp2);
        Console.WriteLine("Is the fourth permission equal to the second "
            + "permission? " + ((rc) ? "Yes" : "No"));
        Console.WriteLine("Creating the intersection of the second and "
            + "first permissions.");
        sp4 = (StorePermission)sp2.Intersect(sp1);
        Console.WriteLine("Value of the Flags property is: "
            + sp4.get_Flags().ToString());
        Console.WriteLine("Creating the union of the second and first "
            + "permissions.");
        sp4 = (StorePermission)sp2.Union(sp1);
        Console.WriteLine("Result of the union of the second permission "
            + "with the first:  " + sp4.get_Flags());
        Console.WriteLine("Using an XML roundtrip to reset the fourth "
            + "permission.");
        sp4.FromXml(sp2.ToXml());
        rc = sp4.Equals(sp2);
        Console.WriteLine("Does the XML roundtrip result equal the original
 "
            + "permission? " + ((rc) ? "Yes" : "No"));
    } //ShowMembers 
} //X509store2
継承階層継承階層
System.Object
   System.Security.CodeAccessPermission
    System.Security.Permissions.StorePermission
スレッド セーフスレッド セーフ
この型の public static (Visual Basic では Shared) メンバはすべて、スレッド セーフです。インスタンス メンバ場合は、スレッド セーフであるとは限りません。
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
StorePermission メンバ
System.Security.Permissions 名前空間
StorePermissionAttribute
StorePermissionFlags
その他の技術情報
アクセス許可
アクセス許可要求

StorePermission コンストラクタ (StorePermissionFlags)

メモ : このコンストラクタは、.NET Framework version 2.0新しく追加されたものです。

アクセス権指定して、StorePermission クラス新しインスタンス初期化します。

名前空間: System.Security.Permissions
アセンブリ: System (system.dll 内)
構文構文

Public Sub New ( _
    flag As StorePermissionFlags _
)
Dim flag As StorePermissionFlags

Dim instance As New StorePermission(flag)
public StorePermission (
    StorePermissionFlags flag
)
public:
StorePermission (
    StorePermissionFlags flag
)
public StorePermission (
    StorePermissionFlags flag
)
public function StorePermission (
    flag : StorePermissionFlags
)

パラメータ

flag

StorePermissionFlags 値のビットごとの組み合わせ

例外例外
例外種類条件

ArgumentException

flag が、StorePermissionFlags 値の有効な組み合わせではありません。

解説解説
使用例使用例

StorePermission コンストラクタStorePermissionFlags パラメータ使用するコード例次に示します。このコード例は、StorePermission クラストピック取り上げているコード例一部分です。

Console.WriteLine("Creating a permission with Flags = OpenStore.")
Dim sp As New System.Security.Permissions.StorePermission(StorePermissionFlags.OpenStore)
Console.WriteLine("Creating a permission with Flags = OpenStore.");
StorePermission sp = new StorePermission(StorePermissionFlags.OpenStore);
Console.WriteLine("Creating a permission with Flags = OpenStore.");
StorePermission sp = new StorePermission(StorePermissionFlags.OpenStore);
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
StorePermission クラス
StorePermission メンバ
System.Security.Permissions 名前空間

StorePermission コンストラクタ (PermissionState)

メモ : このコンストラクタは、.NET Framework version 2.0新しく追加されたものです。

完全に制限されアクセス許可状態か無制限アクセス許可状態のいずれか指定して、StorePermission クラス新しインスタンス初期化します。

名前空間: System.Security.Permissions
アセンブリ: System (system.dll 内)
構文構文

Public Sub New ( _
    state As PermissionState _
)
Dim state As PermissionState

Dim instance As New StorePermission(state)
public StorePermission (
    PermissionState state
)
public:
StorePermission (
    PermissionState state
)
public StorePermission (
    PermissionState state
)
public function StorePermission (
    state : PermissionState
)

パラメータ

state

PermissionState 値の 1 つ

例外例外
例外種類条件

ArgumentException

state有効な PermissionState 値ではありません。

解説解説
使用例使用例

StorePermission コンストラクタPermissionState パラメータ使用するコード例次に示します。このコード例は、StorePermission クラストピック取り上げているコード例一部分です。

Dim sp3 As New System.Security.Permissions.StorePermission(PermissionState.Unrestricted)
StorePermission sp3 = new StorePermission(PermissionState.Unrestricted);
StorePermission sp3 = new StorePermission(PermissionState.Unrestricted);
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
StorePermission クラス
StorePermission メンバ
System.Security.Permissions 名前空間

StorePermission コンストラクタ

StorePermission クラス新しインスタンス初期化します。
オーバーロードの一覧オーバーロードの一覧

名前 説明
StorePermission (PermissionState) 完全に制限されアクセス許可状態か無制限アクセス許可状態のいずれか指定してStorePermission クラス新しインスタンス初期化します。
StorePermission (StorePermissionFlags) アクセス権指定してStorePermission クラス新しインスタンス初期化します。
参照参照

関連項目

StorePermission クラス
StorePermission メンバ
System.Security.Permissions 名前空間

StorePermission プロパティ


パブリック プロパティパブリック プロパティ

参照参照

関連項目

StorePermission クラス
System.Security.Permissions 名前空間
StorePermissionAttribute
StorePermissionFlags

その他の技術情報

アクセス許可
アクセス許可要求

StorePermission メソッド


パブリック メソッドパブリック メソッド

( プロテクト メソッド参照)
  名前 説明
パブリック メソッド Assert  アクセス許可要求によって保護されているリソースへのアクセス許可が、スタックの上位にある呼び出し元に与えられていない場合でも、呼び出しコードが、このメソッド呼び出すコード通じてリソースアクセスできるように宣言しますAssert使用すると、セキュリティ上の問題発生することがあります。 ( CodeAccessPermission から継承されます。)
パブリック メソッド Copy オーバーライドされます現在のアクセス許可コピー作成して返します
パブリック メソッド Demand  コール スタック内の上位にあるすべての呼び出し元に現在のインスタンスによって指定されているアクセス許可与えられていない場合は、実行時に SecurityException を強制します。 ( CodeAccessPermission から継承されます。)
パブリック メソッド Deny  コール スタックの上位の呼び出し元が、このメソッド呼び出すコード使用して現在のインスタンスによって指定されるリソースアクセスできないようにします。 ( CodeAccessPermission から継承されます。)
パブリック メソッド Equals  オーバーロードされます。 ( CodeAccessPermission から継承されます。)
パブリック メソッド FromXml オーバーライドされますXML エンコーディングから、指定した状態のアクセス許可再構築ます。
パブリック メソッド GetHashCode  ハッシュ アルゴリズムや、ハッシュ テーブルのようなデータ構造での使用適した CodeAccessPermission オブジェクトハッシュ コード取得します。 ( CodeAccessPermission から継承されます。)
パブリック メソッド GetType  現在のインスタンスType取得します。 ( Object から継承されます。)
パブリック メソッド Intersect オーバーライドされます現在のアクセス許可指定したアクセス許可積集合を表すアクセス許可作成して返します
パブリック メソッド IsSubsetOf オーバーライドされます現在のアクセス許可が、指定したアクセス許可サブセットかどうか判断します
パブリック メソッド IsUnrestricted 現在のアクセス許可無制限かどうかを示す値を返します
パブリック メソッド PermitOnly  コール スタックの上位の呼び出し元が、このメソッド呼び出すコード使用して現在のインスタンスによって指定されるリソース以外のすべてのリソースアクセスできないようにします。 ( CodeAccessPermission から継承されます。)
パブリック メソッド ReferenceEquals  指定した複数Object インスタンス同一かどうか判断します。 ( Object から継承されます。)
パブリック メソッド RevertAll  現在のフレーム対す以前オーバーライドをすべて削除し無効にます。 ( CodeAccessPermission から継承されます。)
パブリック メソッド RevertAssert  現在のフレーム対す以前Assert をすべて削除し無効にます。 ( CodeAccessPermission から継承されます。)
パブリック メソッド RevertDeny  現在のフレーム対す以前Deny をすべて削除し無効にます。 ( CodeAccessPermission から継承されます。)
パブリック メソッド RevertPermitOnly  現在のフレーム対す以前の PermitOnly をすべて削除し無効にます。 ( CodeAccessPermission から継承されます。)
パブリック メソッド ToString  現在のアクセス許可オブジェクト文字列形式作成して返します。 ( CodeAccessPermission から継承されます。)
パブリック メソッド ToXml オーバーライドされますアクセス許可とその現在の状態を表す XML エンコーディング作成します
パブリック メソッド Union オーバーライドされます現在のアクセス許可指定したアクセス許可和集合を表すアクセス許可作成します
プロテクト メソッドプロテクト メソッド
参照参照

関連項目

StorePermission クラス
System.Security.Permissions 名前空間
StorePermissionAttribute
StorePermissionFlags

その他の技術情報

アクセス許可
アクセス許可要求

StorePermission メンバ

X.509 証明書格納しているストアへのアクセス権制御します。このクラス継承できません。

StorePermission データ型公開されるメンバを以下の表に示します


パブリック コンストラクタパブリック コンストラクタ
パブリック プロパティパブリック プロパティ
パブリック メソッドパブリック メソッド
( プロテクト メソッド参照)
  名前 説明
パブリック メソッド Assert  アクセス許可要求によって保護されているリソースへのアクセス許可が、スタックの上位にある呼び出し元に与えられていない場合でも、呼び出しコードが、このメソッド呼び出すコード通じてリソースアクセスできるように宣言しますAssert使用すると、セキュリティ上の問題発生することがあります。 (CodeAccessPermission から継承されます。)
パブリック メソッド Copy オーバーライドされます現在のアクセス許可コピー作成して返します
パブリック メソッド Demand  コール スタック内の上位にあるすべての呼び出し元に現在のインスタンスによって指定されているアクセス許可与えられていない場合は、実行時に SecurityException を強制します。 (CodeAccessPermission から継承されます。)
パブリック メソッド Deny  コール スタックの上位の呼び出し元が、このメソッド呼び出すコード使用して現在のインスタンスによって指定されるリソースアクセスできないようにします。 (CodeAccessPermission から継承されます。)
パブリック メソッド Equals  オーバーロードされます。 ( CodeAccessPermission から継承されます。)
パブリック メソッド FromXml オーバーライドされますXML エンコーディングから、指定した状態のアクセス許可再構築ます。
パブリック メソッド GetHashCode  ハッシュ アルゴリズムや、ハッシュ テーブルのようなデータ構造での使用適した CodeAccessPermission オブジェクトハッシュ コード取得します。 (CodeAccessPermission から継承されます。)
パブリック メソッド GetType  現在のインスタンスType取得します。 (Object から継承されます。)
パブリック メソッド Intersect オーバーライドされます現在のアクセス許可指定したアクセス許可積集合を表すアクセス許可作成して返します
パブリック メソッド IsSubsetOf オーバーライドされます現在のアクセス許可が、指定したアクセス許可サブセットかどうか判断します
パブリック メソッド IsUnrestricted 現在のアクセス許可無制限かどうかを示す値を返します
パブリック メソッド PermitOnly  コール スタックの上位の呼び出し元が、このメソッド呼び出すコード使用して現在のインスタンスによって指定されるリソース以外のすべてのリソースアクセスできないようにします。 (CodeAccessPermission から継承されます。)
パブリック メソッド ReferenceEquals  指定した複数Object インスタンス同一かどうか判断します。 (Object から継承されます。)
パブリック メソッド RevertAll  現在のフレーム対す以前オーバーライドをすべて削除し無効にます。 (CodeAccessPermission から継承されます。)
パブリック メソッド RevertAssert  現在のフレーム対す以前Assert をすべて削除し無効にます。 (CodeAccessPermission から継承されます。)
パブリック メソッド RevertDeny  現在のフレーム対す以前Deny をすべて削除し無効にます。 (CodeAccessPermission から継承されます。)
パブリック メソッド RevertPermitOnly  現在のフレーム対す以前の PermitOnly をすべて削除し無効にます。 (CodeAccessPermission から継承されます。)
パブリック メソッド ToString  現在のアクセス許可オブジェクト文字列形式作成して返します。 (CodeAccessPermission から継承されます。)
パブリック メソッド ToXml オーバーライドされますアクセス許可とその現在の状態を表す XML エンコーディング作成します
パブリック メソッド Union オーバーライドされます現在のアクセス許可指定したアクセス許可和集合を表すアクセス許可作成します
プロテクト メソッドプロテクト メソッド
参照参照

関連項目

StorePermission クラス
System.Security.Permissions 名前空間
StorePermissionAttribute
StorePermissionFlags

その他の技術情報

アクセス許可
アクセス許可要求



英和和英テキスト翻訳>> Weblio翻訳
英語⇒日本語日本語⇒英語
  

辞書ショートカット

すべての辞書の索引

「StorePermission」の関連用語

StorePermissionのお隣キーワード
検索ランキング

   

英語⇒日本語
日本語⇒英語
   



StorePermissionのページの著作権
Weblio 辞書 情報提供元は 参加元一覧 にて確認できます。

   
日本マイクロソフト株式会社日本マイクロソフト株式会社
© 2025 Microsoft.All rights reserved.

©2025 GRAS Group, Inc.RSS