Share via


LinkCollection.AddItem Method

Applies To: Windows 8.1

Creates a Link and adds it to the LinkCollection.

Namespace: Microsoft.Assessments.Runtime
Assembly: Microsoft.Assessments.Core (in Microsoft.Assessments.Core.dll)

Usage

'Usage
Dim instance As LinkCollection
Dim linkTitle As String
Dim linkValue As String
Dim returnValue As Link

returnValue = instance.AddItem(linkTitle, linkValue)

Syntax

'Declaration
Public Function AddItem ( _
    linkTitle As String, _
    linkValue As String _
) As Link
public Link AddItem (
    string linkTitle,
    string linkValue
)
public:
Link^ AddItem (
    String^ linkTitle, 
    String^ linkValue
)
public Link AddItem (
    String linkTitle, 
    String linkValue
)
public function AddItem (
    linkTitle : String, 
    linkValue : String
) : Link

Parameters

  • linkTitle
    The link title.
  • linkValue
    The link value, in the form of a URI.

Return Value

Returns Link.

Remarks

A Link holds data from a Links/Link or AnalysisLinks/Link element.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Platforms

Development Platforms

Windows 8.1

See Also

Reference

LinkCollection Class
LinkCollection Members
Microsoft.Assessments.Runtime Namespace