Kommentar
Åtkomst till den här sidan kräver auktorisering. Du kan prova att logga in eller ändra kataloger.
Åtkomst till den här sidan kräver auktorisering. Du kan prova att ändra kataloger.
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: System.UInt32[in]The VSITEMID of the resource.
punkDocData
Type: System.IntPtr%[out] Pointer to the IUnknown interface of the new DocData object.
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:
[C++]
HRESULT IVsProjectResources::CreateResourceDocData(
[in] VSITEMID itemidResource,
[out, retval] IUnknown** punkDocData
);
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.