MethodBuilder.IsSecuritySafeCritical Свойство
Определение
Во всех случаях вызывает исключение NotSupportedException.Throws a NotSupportedException in all cases.
public:
virtual property bool IsSecuritySafeCritical { bool get(); };
public override bool IsSecuritySafeCritical { get; }
member this.IsSecuritySafeCritical : bool
Public Overrides ReadOnly Property IsSecuritySafeCritical As Boolean
Значение свойства
Во всех случаях вызывает исключение NotSupportedException.Throws a NotSupportedException in all cases.
Исключения
Во всех случаях.In all cases. Это свойство не поддерживается в динамических сборках.This property is not supported in dynamic assemblies.
Комментарии
Чтобы определить, является ли метод в динамической сборке критически важным для безопасности, завершите тип путем вызова TypeBuilder.CreateType , вызовите GetMethod метод для завершенного типа и получите IsSecuritySafeCritical свойство в полученном виде MethodInfo .To determine whether a method in a dynamic assembly is security-safe-critical, complete the type by calling TypeBuilder.CreateType, call the GetMethod method on the completed type, and get the IsSecuritySafeCritical property on the resulting MethodInfo.