Share via


UrlTask Constructor

Initializes a new instance of the UrlTask class with the specified display name and the specified URL.

Namespace: Microsoft.EssentialBusinessServer.Console.ObjectModel
Assembly: Microsoft.EssentialBusinessServer.Console.ObjectModel (in microsoft.essentialbusinessserver.console.objectmodel.dll)

Usage

Syntax

'Declaration
Public Sub New ( _
    displayName As String, _
    url As Uri _
)
public UrlTask (
    string displayName,
    Uri url
)
public:
UrlTask (
    String^ displayName, 
    Uri^ url
)
public UrlTask (
    String displayName, 
    Uri url
)
public function UrlTask (
    displayName : String, 
    url : Uri
)

Parameters

  • displayName
    The name that is displayed for the task.
  • url
    A URL that is accessed in the Web browser.

Example

The following code example shows how to initialize a UrlTask that is accessed from the task pane of the Administration Console:

UrlTask siteTask = new UrlTask("Contoso Site", new Uri(@"https://www.contoso.com"));

Exceptions

Exception type Condition
ArgumentException

displayName or url is not valid.

ArgumentNullException

displayName or url is null.

Remarks

After a task has been initialized, it must be added to a TaskCollection to be included in the task pane of the Administration Console.

Platforms

Development Platforms

Windows Server 2008 64-bit Edition, Windows Vista 64-bit Edition, Windows Essential Business Server 2008 Standard, Windows Essential Business Server 2008 Premium

Target Platforms

Windows Essential Business Server 2008 Standard, Windows Essential Business Server 2008 Premium

See Also

Reference

UrlTask Class
UrlTask Members
Microsoft.EssentialBusinessServer.Console.ObjectModel Namespace