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