IVsResourceManager2.ParseResourceID Method
Parses a resource ID (which may contain an embedded package GUID or DLL path) into its components.
Namespace: Microsoft.VisualStudio.Shell.Interop
Assembly: Microsoft.VisualStudio.Shell.Interop.10.0 (in Microsoft.VisualStudio.Shell.Interop.10.0.dll)
Syntax
'Declaration
Function ParseResourceID ( _
szId As String, _
lcid As UInteger, _
<OutAttribute> ByRef pbstrUnadornedId As String, _
<OutAttribute> ByRef pguidPackage As Guid, _
<OutAttribute> ByRef pbstrDllPath As String _
) As Integer
int ParseResourceID(
string szId,
uint lcid,
out string pbstrUnadornedId,
out Guid pguidPackage,
out string pbstrDllPath
)
int ParseResourceID(
[InAttribute] String^ szId,
[InAttribute] unsigned int lcid,
[OutAttribute] String^% pbstrUnadornedId,
[OutAttribute] Guid% pguidPackage,
[OutAttribute] String^% pbstrDllPath
)
abstract ParseResourceID :
szId:string *
lcid:uint32 *
pbstrUnadornedId:string byref *
pguidPackage:Guid byref *
pbstrDllPath:string byref -> int
function ParseResourceID(
szId : String,
lcid : uint,
pbstrUnadornedId : String,
pguidPackage : Guid,
pbstrDllPath : String
) : int
Parameters
szId
Type: String[in] String containing the ID of the resource.
lcid
Type: UInt32[in] The local ID for the resource.
pbstrUnadornedId
Type: String%[out] The resource ID string.
pguidPackage
Type: Guid%[out] The GUID for the resource.
pbstrDllPath
Type: String%[out] The path to the resource in the DLL.
Return Value
Type: Int32
If the method succeeds, it returns S_OK. If it fails, it returns an error code.
Remarks
The resource ID can be an embedded package GIUD or a DLL path. The syntax is:
<prefix><resID>[;<source>]
prefix is "@" for managed resources or "#" for native resources.
resID is the name or numeric ID of the resource.
source is a package GUID (in curly braces) or a DLL path.
DLL paths may contain the tokens, "%lcid%" and "%lang%"; these are expanded to the numeric value of the current locale (for example "1033") and the primary language from the locale name (for example "en"), respectively. If 'lcid' is -1, the current thread locale will be used.
If szID begins with a prefix character, this method sets pbstrUnadornedId to the portion to the left of the semicolon. If there is a semicolon, either pguidPackage or pbstrDllPath will be set to the portion to the right of the semicolon, depending on the type of ID string.
.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.