IVsStructuredFileIO.FindFormatIndex Method

Returns the format index for the CodePage of the data object.

Namespace:  Microsoft.VisualStudio.Shell.Interop
Assembly:  Microsoft.VisualStudio.Shell.Interop (in Microsoft.VisualStudio.Shell.Interop.dll)

Syntax

'宣言
Function FindFormatIndex ( _
    uiCodePage As UInteger, _
    <OutAttribute> pnFormatIndex As UInteger() _
) As Integer
'使用
Dim instance As IVsStructuredFileIO
Dim uiCodePage As UInteger
Dim pnFormatIndex As UInteger()
Dim returnValue As Integer

returnValue = instance.FindFormatIndex(uiCodePage, _
    pnFormatIndex)
int FindFormatIndex(
    uint uiCodePage,
    uint[] pnFormatIndex
)
int FindFormatIndex(
    [InAttribute] unsigned int uiCodePage, 
    [OutAttribute] array<unsigned int>^ pnFormatIndex
)
function FindFormatIndex(
    uiCodePage : uint, 
    pnFormatIndex : uint[]
) : int

Parameters

  • pnFormatIndex
    Type: []

    [out, optional] Pointer to an integer containing the format index.

Return Value

Type: System.Int32

If the method succeeds, it returns S_OK. If it fails, it returns an error code.

Remarks

COM Signature

From vsshell.idl:

HRESULT IVsStructuredFileIO::FindFormatIndex(
   [in] UINT uiCodePage,
   [out, optional] ULONG *pnFormatIndex
);

Permissions

See Also

Reference

IVsStructuredFileIO Interface

IVsStructuredFileIO Members

Microsoft.VisualStudio.Shell.Interop Namespace