PowerTCP Mail for .NET
Item Property
See Also  Send comments on this topic.
Dart.PowerTCP.Mail Namespace > MailHeader Class : Item Property




type
The HeaderLabelType of the header value to get or set.
Gets or sets the element matching the specified HeaderLabelType.

Syntax

Visual Basic (Declaration) 
Public Shadows ReadOnly Default Property Item( _
   ByVal type As HeaderLabelType _
) As String
Visual Basic (Usage)Copy Code
Dim instance As MailHeader
Dim type As HeaderLabelType
Dim value As String
 
value = instance.Item(type)
C# 
public new string this( 
   HeaderLabelType type
) {get;}
Managed Extensions for C++ 
public: __property new string* get_Item( 
   HeaderLabelType type
);
C++/CLI 
public:
new property String^ default [HeaderLabelType] {
   String^ get(HeaderLabelTypetype);
}

Parameters

type
The HeaderLabelType of the header value to get or set.

Property Value

The element at the specified index.

Example

The following example demonstrates
Visual BasicCopy Code
' Be sure to import the namespace by putting "Imports Dart.PowerTCP.Mail"
' at the top of your class.
C#Copy Code
// Be sure to import the namespace by putting "using Dart.PowerTCP.Mail;"
// at the top of your class.

Remarks

This property provides the ability to access a specific element in the collection by using the following syntax: myCollection[HeaderLabelType].

Requirements

Target Platforms: Microsoft .NET Framework 2.0

See Also

Documentation Version 3.2
© 2010 Dart Communications. All Rights Reserved.