Compartir a través de


VsShellUtilities.LookupPackageString Method

Finds the package string

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

Syntax

'Declaration
Public Shared Function LookupPackageString ( _
    package As Guid, _
    s As String _
) As String
public static string LookupPackageString(
    Guid package,
    string s
)
public:
static String^ LookupPackageString(
    Guid package, 
    String^ s
)
static member LookupPackageString : 
        package:Guid * 
        s:string -> string
public static function LookupPackageString(
    package : Guid, 
    s : String
) : String

Parameters

  • package
    Type: Guid

    The GUID of the package that contains the localized resource

  • s
    Type: String

    The input string that may represent a localized resource.

Return Value

Type: String
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.

.NET Framework Security

See Also

Reference

VsShellUtilities Class

Microsoft.VisualStudio.Shell Namespace