Export (0) Print
Expand All

IVsProjectResources.GetResourceItem Method

Gets a resource item and adds it to the project. Commonly used to add a culture-specific resource.

Namespace: Microsoft.VisualStudio.Shell.Interop
Assembly: Microsoft.VisualStudio.Shell.Interop (in microsoft.visualstudio.shell.interop.dll)

int GetResourceItem (
	[InAttribute] uint itemidDocument,
	[InAttribute] string pszCulture,
	[InAttribute] uint grfPRF,
	out uint pitemidResource
)
int GetResourceItem (
	/** @attribute InAttribute() */ UInt32 itemidDocument, 
	/** @attribute InAttribute() */ String pszCulture, 
	/** @attribute InAttribute() */ UInt32 grfPRF, 
	/** @attribute OutAttribute() */ /** @ref */ UInt32 pitemidResource
)
JScript does not support passing value-type arguments by reference.

Parameters

itemidDocument

[in] The VSITEMID of the document to add the resource to.

pszCulture

[in] String containing the culture designation. For more information about culture, see CultureInfo.

grfPRF

[in] Integer. A value from the __VSPROJRESFLAGS enumeration.

pitemidResource

[out] Pointer to the VSITEMID of the resource added to the document.

Return Value

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

COM Signature

From vsshell.idl:

[C++]

HRESULT IVsProjectResources::GetResourceItem(
   [in] VSITEMID itemidDocument, 
   [in] LPCOLESTR pszCulture, 
   [in] VSPROJRESFLAGS grfPRF, 
   [out, retval] VSITEMID* pitemidResource
);

Community Additions

ADD
Show:
© 2014 Microsoft