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.

지정된 문자열에서 A 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

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

반품

로드된 정책 수준입니다.

특성

예외

매개 변수는 str .입니다 null.

str 매개 변수가 잘못되었습니다.

이 메서드 ControlPolicy를 호출하는 코드에는 .

적용 대상