DataItem Class

Describes a data item that includes the definition of that data item (size, type and more), and the details of the binding to some source. This class cannot be inherited.

Inheritance Hierarchy

System.Object
  System.MarshalByRefObject
    System.ComponentModel.Component
      Microsoft.AnalysisServices.DataItem

Namespace:  Microsoft.AnalysisServices
Assembly:  Microsoft.AnalysisServices (in Microsoft.AnalysisServices.dll)

Syntax

'Declaration
<GuidAttribute("DC06C2CC-28F4-41d0-AB97-7C78561AC9DC")> _
<TypeConverterAttribute("Microsoft.AnalysisServices.Design.DataItemTypeConverter, Microsoft.AnalysisServices.Design")> _
Public NotInheritable Class DataItem _
    Inherits Component _
    Implements ICloneable
'Usage
Dim instance As DataItem
[GuidAttribute("DC06C2CC-28F4-41d0-AB97-7C78561AC9DC")]
[TypeConverterAttribute("Microsoft.AnalysisServices.Design.DataItemTypeConverter, Microsoft.AnalysisServices.Design")]
public sealed class DataItem : Component, 
    ICloneable
[GuidAttribute(L"DC06C2CC-28F4-41d0-AB97-7C78561AC9DC")]
[TypeConverterAttribute(L"Microsoft.AnalysisServices.Design.DataItemTypeConverter, Microsoft.AnalysisServices.Design")]
public ref class DataItem sealed : public Component, 
    ICloneable
[<SealedAttribute>]
[<GuidAttribute("DC06C2CC-28F4-41d0-AB97-7C78561AC9DC")>]
[<TypeConverterAttribute("Microsoft.AnalysisServices.Design.DataItemTypeConverter, Microsoft.AnalysisServices.Design")>]
type DataItem =  
    class
        inherit Component
        interface ICloneable
    end
public final class DataItem extends Component implements ICloneable

The DataItem type exposes the following members.

Constructors

  Name Description
Public method DataItem() Initializes a new instance of DataItem using default values.
Public method DataItem(Binding) Initializes a new instance of DataItem for the specified source.
Public method DataItem(String, String) Initializes a new instance of DataItem for the specified table and column.
Public method DataItem(Binding, OleDbType) Initializes a new instance of DataItem for the specified source with the specified OleDbType.
Public method DataItem(String, String, OleDbType) Initializes a new instance of DataItem for the specified table and column with the specified OleDbType.
Public method DataItem(Binding, OleDbType, Int32) Initializes a new instance of DataItem for the specified source with the specified OleDbType and data size.
Public method DataItem(String, String, OleDbType, Int32) Initializes a new instance of DataItem for the specified table and column with the specified OleDbType and data size.

Top

Properties

  Name Description
Public propertyStatic member AllowedDataTypes Gets an array with the allowed data types as defined in OLEDB.
Public property Annotations Gets the collection object of all annotations to current DataItem.
Protected property CanRaiseEvents (Inherited from Component.)
Public property Collation Gets or sets the collation definition for the current DataItem.
Public property Container (Inherited from Component.)
Public property DataSize Gets or sets the size for current DataItem.
Public property DataType Gets or sets the type of current DataItem.
Protected property DesignMode (Inherited from Component.)
Protected property Events (Inherited from Component.)
Public property Format Gets or sets the formatting property for DataItem values.
Public property InvalidXmlCharacters Gets or sets the behavior for invalid characters in XML streams.
Public property MimeType Gets or sets the Mime type of the current DataItem.
Public property NullProcessing Gets or sets action the server should take when current DataItem is a Null value.
Public property Parent Gets the parent object of current DataItem.
Public property Site (Inherited from Component.)
Public property Source Gets or sets the source object for current DataItem.
Public property Trimming Gets or sets the trimming specification for string type DataItem

Top

Methods

  Name Description
Public method Clone Creates a new, deep copy of current DataItem.
Public method CopyTo Creates a deep copy of current DataItem in the specified object.
Public method CreateObjRef (Inherited from MarshalByRefObject.)
Public method Dispose() (Inherited from Component.)
Protected method Dispose(Boolean) (Inherited from Component.)
Public method Equals (Inherited from Object.)
Protected method Finalize (Inherited from Component.)
Public method GetHashCode (Inherited from Object.)
Public method GetLifetimeService (Inherited from MarshalByRefObject.)
Protected method GetService (Inherited from Component.)
Public method GetType (Inherited from Object.)
Public method InitializeLifetimeService (Inherited from MarshalByRefObject.)
Protected method MemberwiseClone() (Inherited from Object.)
Protected method MemberwiseClone(Boolean) (Inherited from MarshalByRefObject.)
Public method ToString Returns a string representation of current DataItem value. (Overrides Component.ToString().)

Top

Events

  Name Description
Public event Disposed (Inherited from Component.)

Top

Explicit Interface Implementations

  Name Description
Explicit interface implemetationPrivate method ICloneable.Clone

Top

Remarks

New: 17 July 2006

This element type is used for any data item which can be bound to a data source, for example: measure, attribute keys, and attribute names.

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.