Freigeben über


WorkItem.Item Property (String)

Gets or sets the value of a field in this work item that is specified by the field name.

Namespace:  Microsoft.TeamFoundation.WorkItemTracking.Client
Assembly:  Microsoft.TeamFoundation.WorkItemTracking.Client (in Microsoft.TeamFoundation.WorkItemTracking.Client.dll)

Syntax

'Declaration
Public Default Property Item ( _
    name As String _
) As Object
    Get
    Set
public Object this[
    string name
] { get; set; }
public:
property Object^ default[String^ name] {
    Object^ get (String^ name);
    void set (String^ name, Object^ value);
}
member Item : Object with get, set
JScript does not support indexed properties.

Parameters

  • name
    Type: System.String
    The string that is passed in name could be either the field name or a reference name.

Property Value

Type: System.Object
The object that is contained in this field.

Exceptions

Exception Condition
ArgumentNullException

The name parameter is null.

.NET Framework Security

See Also

Reference

WorkItem Class

Item Overload

Microsoft.TeamFoundation.WorkItemTracking.Client Namespace