다음을 통해 공유


VsShellUtilities.LookupPackageString(Guid, String) Method

Definition

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 will work whether the package's satellite DLL is managed or native.

public:
 static System::String ^ LookupPackageString(Guid package, System::String ^ s);
public static string LookupPackageString (Guid package, string s);
static member LookupPackageString : Guid * string -> string
Public Shared Function LookupPackageString (package As Guid, s As String) As String
Public Function LookupPackageString (package As Guid, s As String) As String

Parameters

package
Guid

The GUID of the package containing the localized resource

s
String

The input string which may represent a localized resource

Returns

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

Remarks

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.

Applies to