Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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: GuidThe GUID of the package that contains the localized resource
s
Type: StringThe 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
- 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.