UrlMembershipCondition Constructor (String)

 

Initializes a new instance of the UrlMembershipCondition class with the URL that determines membership.

Namespace:   System.Security.Policy
Assembly:  mscorlib (in mscorlib.dll)

public UrlMembershipCondition(
	string url
)

Parameters

url
Type: System.String

The URL for which to test.

Exception Condition
ArgumentNullException

The url parameter is null.

ArgumentException

url must be an absolute URL.

The complete URL is considered, including the protocol (HTTP, HTTPS, FTP) and the file, for example: http://www.fourthcoffee.com/process/grind.htm.

URLs can be matched exactly or by a wildcard in the final position, for example: http://www.fourthcoffee.com/process/*.

.NET Framework
Available since 1.1
Return to top
Show: