VsShellUtilities::LookupPackageString Method (Guid, String^)

 

Finds the package string

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

public:
static String^ LookupPackageString(
	Guid package,
	String^ s
)

Parameters

package
Type: System::Guid

The GUID of the package that contains the localized resource

s
Type: System::String^

The input string that may represent a localized resource.

Return Value

Type: System::String^

The localized resource or, if look-up failed, then the original string.

If the given string is in the correct format to indicate a localized resource, then look it up in the given package. Accepted formats are #nnnn or @nnnn where nnnn is a decimal resource ID. The # prefix indicates a native resource and the @ prefix indicates a managed resource. However, these are just hints; either prefix works, whether the package's satellite DLL is managed or native.

Return to top
Show: