HostProtectionException.DemandedResources Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets or sets the demanded host protection resources that caused the exception to be thrown.
public:
property System::Security::Permissions::HostProtectionResource DemandedResources { System::Security::Permissions::HostProtectionResource get(); };
public System.Security.Permissions.HostProtectionResource DemandedResources { get; }
member this.DemandedResources : System.Security.Permissions.HostProtectionResource
Public ReadOnly Property DemandedResources As HostProtectionResource
Property Value
A bitwise combination of the HostProtectionResource values identifying the protection resources causing the exception to be thrown. The default is None.
Remarks
This property returns the demanded host protection categories that caused the exception to be thrown. For example, suppose that a method has a HostProtectionAttribute attribute that indicates that the method exposes shared state. When the method is called, the HostProtectionAttribute performs a link demand for shared state. If the host has set shared state as a prohibited category, then a HostProtectionException is raised, and the value of the DemandedResources property is HostProtectionResource.SharedState.
Applies to
Σχόλια
https://aka.ms/ContentUserFeedback.
Σύντομα διαθέσιμα: Καθ' όλη τη διάρκεια του 2024 θα καταργήσουμε σταδιακά τα ζητήματα GitHub ως μηχανισμό ανάδρασης για το περιεχόμενο και θα το αντικαταστήσουμε με ένα νέο σύστημα ανάδρασης. Για περισσότερες πληροφορίες, ανατρέξτε στο θέμα:Υποβολή και προβολή σχολίων για