Share via


IVsResourceManager2.AnnotateIDIfNecessary Method

Definition

Creates an annotated resource ID.

public:
 int AnnotateIDIfNecessary(System::String ^ szId, Guid % guidPackage, System::String ^ szDllPath, [Runtime::InteropServices::Out] System::String ^ % pbstrAnnotatedId);
public int AnnotateIDIfNecessary (string szId, ref Guid guidPackage, string szDllPath, out string pbstrAnnotatedId);
abstract member AnnotateIDIfNecessary : string * Guid * string * string -> int
Public Function AnnotateIDIfNecessary (szId As String, ByRef guidPackage As Guid, szDllPath As String, ByRef pbstrAnnotatedId As String) As Integer

Parameters

szId
String

[in] The resource ID.

guidPackage
Guid

[in] The GUID of the resource package.

szDllPath
String

[in] The path to the resource in the DLL.

pbstrAnnotatedId
String

[out] An ID string with the correct annotations.

Returns

If the method succeeds, it returns S_OK. If it fails, it returns an error code.

Remarks

This method is safe to access from any thread.

Applies to