Share via


HtmlTagContextAttribute.ReadValue Method

The ReadValue method reads the attribute value or value part into a character array.

Namespace: Microsoft.Exchange.Data.TextConverters
Assembly: Microsoft.Exchange.Data.Common (in microsoft.exchange.data.common.dll)

Syntax

'Declaration
Public Function ReadValue ( _
    buffer As Char(), _
    offset As Integer, _
    count As Integer _
) As Integer
public int ReadValue (
    char[] buffer,
    int offset,
    int count
)
public:
int ReadValue (
    array<wchar_t>^ buffer, 
    int offset, 
    int count
)
public int ReadValue (
    char[] buffer, 
    int offset, 
    int count
)
public function ReadValue (
    buffer : char[], 
    offset : int, 
    count : int
) : int

Parameters

  • buffer
    When this method returns, it contains the specified character array with the values between index and (index + count - 1) replaced by characters read and converted from the stored attribute value.
  • offset
    The place in buffer at which to begin writing.
  • count
    The maximum number of characters to read. If the end of the attribute value is reached before count of characters is read into buffer, the current method returns.

Return Value

The ReadValue returns the number of characters read into buffer.

Remarks

For very long attributes, it is possible that this HtmlTagContextAttribute structure contains a truncated version of the attribute. Set the MaxCallbackTagLength property on the RtfToHtml or HtmlToHtml object to control the length of tags that HtmlTagContextAttribute objects can receive.

The ReadValue method can be called several times to read the complete attribute into a buffer of limited size.

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.

Platforms

Development Platforms

Windows XP Professional with Service Pack 2 (SP2), Windows Server 2003,

Target Platforms

Windows Server 2003