Share via


UrlTask Constructor (String, Uri)

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 display name of the task.
  • url
    The URL that is accessed from the Web browser.

Example

The following code example shows how to initialize a UrlTask with a specified display name and a specified URL:

Uri uriTask = new Uri(@"https://www.contoso.com");

UrlTask<BusinessObject> urlTask = null;
urlTask = new UrlTask<BusinessObject>("Contoso Web Site", uriTask);

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.

TBusinessObject represents a business object that encapsulates information and methods that relate to business data or business functionality. The information in a business object is exposed as properties.

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 Generic Class
UrlTask Members
Microsoft.EssentialBusinessServer.Console.ObjectModel Namespace