SecurityManager.LoadPolicyLevelFromString(String, PolicyLevelType) 메서드

정의

주의

이 API는 이제 사용되지 않습니다.

주의

This method is obsolete and will be removed in a future release of the .NET Framework. See http://go.microsoft.com/fwlink/?LinkID=155570 for more information.

지정된 문자열에서 PolicyLevel을 로드합니다.

public:
 static System::Security::Policy::PolicyLevel ^ LoadPolicyLevelFromString(System::String ^ str, System::Security::PolicyLevelType type);
[System.Obsolete]
public static System.Security.Policy.PolicyLevel LoadPolicyLevelFromString (string str, System.Security.PolicyLevelType type);
public static System.Security.Policy.PolicyLevel LoadPolicyLevelFromString (string str, System.Security.PolicyLevelType type);
[System.Obsolete("This method is obsolete and will be removed in a future release of the .NET Framework. See http://go.microsoft.com/fwlink/?LinkID=155570 for more information.")]
public static System.Security.Policy.PolicyLevel LoadPolicyLevelFromString (string str, System.Security.PolicyLevelType type);
[<System.Obsolete>]
static member LoadPolicyLevelFromString : string * System.Security.PolicyLevelType -> System.Security.Policy.PolicyLevel
static member LoadPolicyLevelFromString : string * System.Security.PolicyLevelType -> System.Security.Policy.PolicyLevel
[<System.Obsolete("This method is obsolete and will be removed in a future release of the .NET Framework. See http://go.microsoft.com/fwlink/?LinkID=155570 for more information.")>]
static member LoadPolicyLevelFromString : string * System.Security.PolicyLevelType -> System.Security.Policy.PolicyLevel
Public Shared Function LoadPolicyLevelFromString (str As String, type As PolicyLevelType) As PolicyLevel

매개 변수

str
String

구성 파일에 나타나는 것과 같은 형식으로 된 보안 정책 수준의 XML 표현입니다.

type
PolicyLevelType

로드할 정책 수준 유형을 지정하는 열거형 값 중 하나입니다.

반환

PolicyLevel

로드된 정책 수준입니다.

특성

예외

str 매개 변수가 null인 경우

str 매개 변수가 잘못된 경우

이 메서드를 호출하는 코드에 ControlPolicy가 없습니다.

적용 대상