UrlMembershipCondition(String) 构造函数
定义
用确定成员身份的 URL 初始化 UrlMembershipCondition 类的新实例。Initializes a new instance of the UrlMembershipCondition class with the URL that determines membership.
public:
UrlMembershipCondition(System::String ^ url);
public UrlMembershipCondition (string url);
new System.Security.Policy.UrlMembershipCondition : string -> System.Security.Policy.UrlMembershipCondition
Public Sub New (url As String)
参数
- url
- String
要对其进行测试的 URL。The URL for which to test.
例外
url 参数为 null。The url parameter is null.
url 必须为绝对 URL。url must be an absolute URL.
注解
将考虑完整的 URL,包括 (HTTP、HTTPS、FTP) 和文件的协议,例如: http://www.fourthcoffee.com/process/grind.htm 。The complete URL is considered, including the protocol (HTTP, HTTPS, FTP) and the file, for example: http://www.fourthcoffee.com/process/grind.htm.
Url 可以完全与最终位置中的通配符匹配,例如: http://www.fourthcoffee.com/process/* 。URLs can be matched exactly or by a wildcard in the final position, for example: http://www.fourthcoffee.com/process/*.