Share via


VirtualColumn Class

Virtual Column (Field) class to passed to/from ColumnsPickerControl class.

Inheritance Hierarchy

System.Object
  Microsoft.TeamFoundation.WorkItemTracking.Controls.VirtualColumn

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

Syntax

'Declaration
Public Class VirtualColumn
public class VirtualColumn
public ref class VirtualColumn
type VirtualColumn =  class end
public class VirtualColumn

The VirtualColumn type exposes the following members.

Constructors

  Name Description
Public method VirtualColumn(String, String, Boolean, Boolean) Used by the ColumnsPickerControl exclusively to set the requiredText.
Public method VirtualColumn(String, String, Boolean, Object, Boolean) No default constructor; non-empty Display string is always required.Display is the string shown in ColumnsPickerControl list box and probably displayed to user by caller. MappedDatabaseField is the Currituck field name that this column is mapped to. It may be the same as Display. It will be empty or null for non-mapped columns. Required means caller requires this field and ColumnsPickerControl cannot delete it. Example might be the ID field.
Public method VirtualColumn(String, String, String, Boolean, Object, Boolean)

Top

Properties

  Name Description
Public property DatabaseDisplayField
Public property Display
Public property IsFaked
Public property IsRequired
Public property IsSpecialField
Public property IsUserField
Public property MappedDatabaseField
Public property SpecialFieldInfo

Top

Methods

  Name Description
Public method Equals Determines whether the specified object is equal to the current object. (Inherited from Object.)
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public methodStatic member GetFakedColumnReferenceNamePrefix This method is here so that other classes can retrieve mapped reference for faked columns Deserialization needs this name to re-construct the list after the workbook is loaded.
Public method GetHashCode Serves as the default hash function. (Inherited from Object.)
Public methodStatic member GetNextFakedColumnReferenceName We have to treat the faked columns to be the same as round trip columns However, faked columns do not have database fields to map against so we must have a reference name (which is mapped to a database field.) This format of the faked reference name is System.Faked.
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Public methodStatic member IsFakedReferenceName Checks the reference name is one of the "faked" name.
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method ToString Returns the DetailedDisplay if it is required (used exclusively in ColumnsPickerControl), otherwise return Display. (Overrides Object.ToString().)

Top

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.

See Also

Reference

Microsoft.TeamFoundation.WorkItemTracking.Controls Namespace