Microsoft Internet Security and Acceleration Server 2004 SDK

IFPCContentTypeSet::Item[C++]

FPCContentTypeSet.Item [Visual Basic]

[C++]

The Item method retrieves the requested file type from the set.

HRESULT Item(
  VARIANT Index,
  BSTR* pbstrItem
);

Parameters

Index
[in] Required. Name or one-based index of the content type to retrieve.
pbstrItem
[out] Pointer to a BSTR that is set on return to a string value specifying the content type requested.

Return Values

This method returns S_OK if the call is successful; otherwise, it returns an error code.
[Visual Basic]

The Item method retrieves the requested file type from the set.

Function Item( _
  ByVal Index As Variant _
) As String

Parameters

Index
[in] Required. Name or one-based index of the content type to retrieve.

Return Values

This method returns a string value that specifies the content type if successful. Otherwise, an error is raised that can be intercepted by using an error handler.

Requirements

Server: Requires Windows Server 2003 or Windows 2000.
Version: Requires Internet Security and Acceleration Server 2004.
Header: Declared in Msfpccom.idl.
Library: Use Microsoft Internet Security and Acceleration Server 2004 Administration Library.

See Also

FPCContentTypeSet