Intersoft WebGrid Documentation
ItemType Property
See Also  Example Send Feedback
ISNet.WebUI.WebGrid Namespace > IHierarchicalList Interface : ItemType Property






Gets the Item Type contained by the Hierarchical Collection.

Syntax

Visual Basic (Declaration) 
ReadOnly Property ItemType As Type
Visual Basic (Usage)Copy Code
Dim instance As IHierarchicalList
Dim value As Type
 
value = instance.ItemType
C# 
Type ItemType {get;}
Delphi 
read-only property ItemType: Type; 
JScript 
function get ItemType : Type
Managed Extensions for C++ 
__property Type* get_ItemType();
C++/CLI 
property Type^ ItemType {
   Type^ get();
}

Example

The following sample code shows that CustomerCollection is a collection which primarily contains Customer object. You then return the type of the Customer in the property getter.
C#Copy Code
public Type ItemType
{
    get
    {
        return typeof(Customer);
    }
}

Remarks

In this property member, you write codes to return the System.Type of the Item Type contained by the Collection.

Requirements

Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family

See Also

©2012 Intersoft Solutions Corp. All Rights Reserved.