Partager via


UrlTask<TBusinessObject> Constructor (String, Uri)

 

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

Namespace:   Microsoft.WindowsServerSolutions.Administration.ObjectModel
Assembly:  Microsoft.WindowsServerSolutions.Administration.ObjectModel (in Microsoft.WindowsServerSolutions.Administration.ObjectModel.dll)

Syntax

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

Parameters

  • url
    Type: System.Uri

    The URL that is accessed from the Web browser.

Exceptions

Exception 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 Dashboard.

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.

Examples

The following code example shows how to initialize a UrlTask<TBusinessObject> 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);

See Also

UrlTask<TBusinessObject> Overload
UrlTask<TBusinessObject> Class
Microsoft.WindowsServerSolutions.Administration.ObjectModel Namespace

Return to top