UrlMembershipCondition Constructor (String^)

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

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: