Compartilhar via


IVsProjectResources.CreateResourceDocData Method

Creates a DocData object for a resource item.

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

Syntax

'Declaration
Function CreateResourceDocData ( _
    itemidResource As UInteger, _
    <OutAttribute> ByRef punkDocData As IntPtr _
) As Integer
int CreateResourceDocData(
    uint itemidResource,
    out IntPtr punkDocData
)
int CreateResourceDocData(
    [InAttribute] unsigned int itemidResource, 
    [OutAttribute] IntPtr% punkDocData
)
abstract CreateResourceDocData : 
        itemidResource:uint32 * 
        punkDocData:IntPtr byref -> int
function CreateResourceDocData(
    itemidResource : uint, 
    punkDocData : IntPtr
) : int

Parameters

  • itemidResource
    Type: UInt32

    [in]The VSITEMID of the resource.

  • punkDocData
    Type: IntPtr%

    [out] Pointer to the IUnknown interface of the new DocData object.

Return Value

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

Remarks

COM Signature

From vsshell.idl:

[C++]

HRESULT IVsProjectResources::CreateResourceDocData(
   [in] VSITEMID itemidResource, 
   [out, retval] IUnknown** punkDocData
);

.NET Framework Security

See Also

Reference

IVsProjectResources Interface

Microsoft.VisualStudio.Shell.Interop Namespace