PermissionRequestEvidence Класс

Определение

Внимание!

This type is obsolete. See http://go.microsoft.com/fwlink/?LinkID=155570 for more information.

Внимание!

This type is obsolete. See https://go.microsoft.com/fwlink/?LinkID=155570 for more information.

Внимание!

Code Access Security is not supported or honored by the runtime.

Внимание!

Assembly level declarative security is obsolete and is no longer enforced by the CLR by default. See http://go.microsoft.com/fwlink/?LinkID=155570 for more information.

Определяет свидетельство, представляющее запросы разрешений. Этот класс не наследуется.

public ref class PermissionRequestEvidence sealed : System::Security::Policy::EvidenceBase
public ref class PermissionRequestEvidence sealed
[System.Obsolete("This type is obsolete. See http://go.microsoft.com/fwlink/?LinkID=155570 for more information.")]
public sealed class PermissionRequestEvidence : System.Security.Policy.EvidenceBase
[System.Obsolete("This type is obsolete. See https://go.microsoft.com/fwlink/?LinkID=155570 for more information.")]
public sealed class PermissionRequestEvidence : System.Security.Policy.EvidenceBase
[System.Obsolete("Code Access Security is not supported or honored by the runtime.")]
public sealed class PermissionRequestEvidence : System.Security.Policy.EvidenceBase
[System.Serializable]
public sealed class PermissionRequestEvidence
[System.Serializable]
[System.Runtime.InteropServices.ComVisible(true)]
public sealed class PermissionRequestEvidence
[System.Serializable]
[System.Runtime.InteropServices.ComVisible(true)]
[System.Obsolete("Assembly level declarative security is obsolete and is no longer enforced by the CLR by default. See http://go.microsoft.com/fwlink/?LinkID=155570 for more information.")]
public sealed class PermissionRequestEvidence : System.Security.Policy.EvidenceBase
[System.Serializable]
[System.Runtime.InteropServices.ComVisible(true)]
public sealed class PermissionRequestEvidence : System.Security.Policy.EvidenceBase
[<System.Obsolete("This type is obsolete. See http://go.microsoft.com/fwlink/?LinkID=155570 for more information.")>]
type PermissionRequestEvidence = class
    inherit EvidenceBase
[<System.Obsolete("This type is obsolete. See https://go.microsoft.com/fwlink/?LinkID=155570 for more information.")>]
type PermissionRequestEvidence = class
    inherit EvidenceBase
[<System.Obsolete("Code Access Security is not supported or honored by the runtime.")>]
type PermissionRequestEvidence = class
    inherit EvidenceBase
[<System.Serializable>]
type PermissionRequestEvidence = class
[<System.Serializable>]
[<System.Runtime.InteropServices.ComVisible(true)>]
type PermissionRequestEvidence = class
[<System.Serializable>]
[<System.Runtime.InteropServices.ComVisible(true)>]
[<System.Obsolete("Assembly level declarative security is obsolete and is no longer enforced by the CLR by default. See http://go.microsoft.com/fwlink/?LinkID=155570 for more information.")>]
type PermissionRequestEvidence = class
    inherit EvidenceBase
[<System.Serializable>]
[<System.Runtime.InteropServices.ComVisible(true)>]
type PermissionRequestEvidence = class
    inherit EvidenceBase
Public NotInheritable Class PermissionRequestEvidence
Inherits EvidenceBase
Public NotInheritable Class PermissionRequestEvidence
Наследование
PermissionRequestEvidence
Наследование
PermissionRequestEvidence
Атрибуты

Комментарии

Внимание!

Безопасность доступа к коду (CAS) устарела во всех версиях платформа .NET Framework и .NET. Последние версии .NET не учитывают заметки CAS и создают ошибки, если используются API, связанные с CAS. Разработчики должны искать альтернативные средства выполнения задач безопасности.

Запросы разрешений включают минимальные разрешения, необходимые для выполнения кода, разрешения, которые код может использовать, если они предоставлены, но не являются обязательными, и разрешения, которые код явно запрашивает не предоставлять.

Конструкторы

PermissionRequestEvidence(PermissionSet, PermissionSet, PermissionSet)

Инициализирует новый экземпляр класса PermissionRequestEvidence с запросом разрешения сборки кода.

Свойства

DeniedPermissions

Получает разрешения, которые код явно запрашивает ему не предоставлять.

OptionalPermissions

Получает разрешения, которые код может использовать в случае их предоставления, но они не являются обязательными.

RequestedPermissions

Получает минимальный набор разрешений, требуемый для запуска кода.

Методы

Clone()

Создает новый объект, являющийся копией текущего экземпляра.

Clone()

Создает новый объект, являющийся полной копией текущего экземпляра.

(Унаследовано от EvidenceBase)
Copy()

Создает эквивалентную копию текущего объекта PermissionRequestEvidence.

Equals(Object)

Определяет, равен ли указанный объект текущему объекту.

(Унаследовано от Object)
GetHashCode()

Служит хэш-функцией по умолчанию.

(Унаследовано от Object)
GetType()

Возвращает объект Type для текущего экземпляра.

(Унаследовано от Object)
MemberwiseClone()

Создает неполную копию текущего объекта Object.

(Унаследовано от Object)
ToString()

Получает строковое представление состояния объекта PermissionRequestEvidence.

Применяется к