This documentation is archived and is not being maintained.

UrlMembershipCondition Constructor

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

[Visual Basic]
Public Sub New( _
   ByVal url As String _
)
[C#]
public UrlMembershipCondition(
   string url
);
[C++]
public: UrlMembershipCondition(
   String* url
);
[JScript]
public function UrlMembershipCondition(
   url : String
);

Parameters

url
The URL for which to test.

Exceptions

Exception Type Condition
ArgumentNullException The url parameter is a null reference (Nothing in Visual Basic).

Remarks

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/*.

Requirements

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

See Also

UrlMembershipCondition Class | UrlMembershipCondition Members | System.Security.Policy Namespace

Show: