Bewerken

Delen via


Site.CreateFromUrl(String) Method

Definition

Creates a new Site object from the specified URL.

public:
 static System::Security::Policy::Site ^ CreateFromUrl(System::String ^ url);
public static System.Security.Policy.Site CreateFromUrl (string url);
static member CreateFromUrl : string -> System.Security.Policy.Site
Public Shared Function CreateFromUrl (url As String) As Site

Parameters

url
String

The URL from which to create the new Site object.

Returns

A new site object.

Exceptions

The url parameter is not a valid URL.

-or-

The url parameter is a file name.

Applies to