Zone::CreateFromUrl Method (String^)

 

Creates a new zone with the specified URL.

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

public:
static Zone^ CreateFromUrl(
	String^ url
)

Parameters

url
Type: System::String^

The URL from which to create the zone.

Return Value

Type: System.Security.Policy::Zone^

A new zone with the specified URL.

Exception Condition
ArgumentNullException

The url parameter is null.

The zone determination for the specified URL is based on the zone mapping settings in Microsoft Internet Explorer and can therefore differ from computer to computer. The zone mapping settings are located on the Security tab of the Internet Options dialog launched from the Tools menu.

.NET Framework
Available since 1.1
Return to top
Show: