System.Net.WebPermission Members

The members of System.Net.WebPermission are listed below.

See Also: Inherited members from System.Security.CodeAccessPermission

Public Constructors

Creates a new instance of the System.Net.WebPermission class.

Creates a new instance of the System.Net.WebPermission class that passes all demands or fails all demands.

Initializes a new instance of the System.Net.WebPermission class with the specified access rights for the specified URI.

Initializes a new instance of the System.Net.WebPermission class with the specified access rights for the specified URI regular expression.

Public Properties

[read-only]
AcceptListIEnumerator.

This property returns an enumeration of a single accept permissions held by this System.Net.WebPermission. The possible objects types contained in the returned enumeration are string and System.Text.RegularExpressions.Regex.

[read-only]
ConnectListIEnumerator.

This property returns an enumeration of a single connect permissions held by this System.Net.WebPermission. The possible objects types contained in the returned enumeration are string and System.Text.RegularExpressions.Regex.

Public Methods

AddPermission(NetworkAccess, string)

Adds the specified URI string with the specified access rights to the current System.Net.WebPermission.

AddPermission(NetworkAccess, System.Text.RegularExpressions.Regex)

Adds the specified URI with the specified access rights to the current System.Net.WebPermission.

override
Copy() : System.Security.IPermission

Creates a copy of a System.Net.WebPermission.

override
FromXml(System.Security.SecurityElement)

Reconstructs a System.Net.WebPermission from an XML encoding.

override
Intersect(System.Security.IPermission) : System.Security.IPermission

Returns the logical intersection of two System.Net.WebPermission instances.

override
IsSubsetOf(System.Security.IPermission) : bool

Determines whether the current System.Net.WebPermission is a subset of the specified object.

IsUnrestricted() : bool

Checks the overall permission state of the System.Net.WebPermission.

override
ToXml() : System.Security.SecurityElement

Creates an XML encoding of a System.Net.WebPermission and its current state.

override
Union(System.Security.IPermission) : System.Security.IPermission

Returns the logical union between two instances of the System.Net.WebPermission class.