次の方法で共有


SecurityException コンストラクタ (String, Type, String)

指定したエラー メッセージ、例外がスローされる原因となったアクセス許可の種類、およびアクセス許可の状態を使用して、SecurityException クラスの新しいインスタンスを初期化します。

名前空間: System.Security
アセンブリ: mscorlib (mscorlib.dll 内)

構文

'宣言
Public Sub New ( _
    message As String, _
    type As Type, _
    state As String _
)
'使用
Dim message As String
Dim type As Type
Dim state As String

Dim instance As New SecurityException(message, type, state)
public SecurityException (
    string message,
    Type type,
    string state
)
public:
SecurityException (
    String^ message, 
    Type^ type, 
    String^ state
)
public SecurityException (
    String message, 
    Type type, 
    String state
)
public function SecurityException (
    message : String, 
    type : Type, 
    state : String
)
適用できません。

パラメータ

  • message
    例外の原因を説明するエラー メッセージ。
  • type
    例外がスローされる原因となったアクセス許可の種類。
  • state
    例外がスローされる原因となったアクセス許可の状態。

解説

次の表に、このコンストラクタで設定されるプロパティ値を示します。

プロパティ

Message

message で指定された、ローカライズ済みエラー メッセージ文字列。

PermissionType

失敗したアクセス許可の Type。type により指定されます。

Demanded

要求されたが失敗したセキュリティ アクセス許可、アクセス許可セット、またはアクセス許可セットのコレクション。

使用例

SecurityException コンストラクタの使用例については、SecurityException(String,Object,Object,MethodInfo,Object,IPermission) コンストラクタのトピックで取り上げられている例を参照してください。

プラットフォーム

Windows 98,Windows Server 2000 SP4,Windows CE,Windows Millennium Edition,Windows Mobile for Pocket PC,Windows Mobile for Smartphone,Windows Server 2003,Windows XP Media Center Edition,Windows XP Professional x64 Edition,Windows XP SP2,Windows XP Starter Edition

Microsoft .NET Framework 3.0 は Windows Vista,Microsoft Windows XP SP2,および Windows Server 2003 SP1 でサポートされています。

バージョン情報

.NET Framework

サポート対象 : 3.0,2.0,1.1,1.0

参照

関連項目

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