指定した文字列から PolicyLevel を読み込みます。
Public Shared Function LoadPolicyLevelFromString( _
ByVal str As String, _ ByVal type As PolicyLevelType _) As PolicyLevel
[C#]
public static PolicyLevel LoadPolicyLevelFromString(stringstr,PolicyLevelTypetype);
[C++]
public: static PolicyLevel* LoadPolicyLevelFromString(String* str,PolicyLevelTypetype);
[JScript]
public static function LoadPolicyLevelFromString(
str : String,type : PolicyLevelType) : PolicyLevel;
パラメータ
- str
構成ファイルでの表示と同じ形式によるセキュリティ ポリシー レベルの XML 表現。 - type
PolicyLevelType 値の 1 つ。
戻り値
読み込まれた PolicyLevel 。
例外
例外の種類 | 条件 |
---|---|
ArgumentNullException | str パラメータが null 参照 (Visual Basic では Nothing) です。 |
ArgumentException | str パラメータが有効ではありません。 |
SecurityException | このメソッドを呼び出すコードに SecurityPermissionFlag.ControlPolicy がありません。 |
必要条件
プラットフォーム: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 ファミリ
.NET Framework セキュリティ:
- SecurityPermission (ポリシーを表示および変更するために必要な許可)。 SecurityPermissionFlag.ControlPolicy (関連する列挙体)
参照
SecurityManager クラス | SecurityManager メンバ | System.Security 名前空間