Site::CreateFromUrl Method (String^)

 

Creates a new Site object from the specified URL.

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

public:
static Site^ CreateFromUrl(
	String^ url
)

Parameters

url
Type: System::String^

The URL from which to create the new Site object.

Return Value

Type: System.Security.Policy::Site^

A new site object.

Exception Condition
ArgumentException

The url parameter is not a valid URL.

-or-

The url parameter is a file name.

.NET Framework
Available since 1.1
Return to top
Show: