See Also: WebPermissionAttribute Members
System.Net.WebPermissionAttribute allows you to declaratively specify which URI strings and regular expression strings your class can use.
The security information specified in the System.Net.WebPermissionAttribute is stored in the metadata of the attribute target, which is the class to which System.Net.WebPermissionAttribute is applied. The system accesses this information at run time. The System.Security.Permissions.SecurityAction passed to the constructor determines the allowable System.Net.WebPermissionAttribute targets. The system uses the System.Net.WebPermission returned by the WebPermissionAttribute.CreatePermission method to convert the security information of the attribute target to a serializable form stored in metadata.
System.Net.WebPermissionAttribute is used only for [<topic://cpcondeclarativesecurity>]. For [<topic://cpconimperativesecurity>], use the corresponding System.Net.WebPermission.