Compartir a través de


FlavoredProject.IVsHierarchy.ParseCanonicalName(String, UInt32) Method

Definition

Returns the identifier of the hierarchy item, given its canonical name.

 virtual int Microsoft.VisualStudio.Shell.Interop.IVsHierarchy.ParseCanonicalName(System::String ^ name, [Runtime::InteropServices::Out] System::UInt32 % itemId) = Microsoft::VisualStudio::Shell::Interop::IVsHierarchy::ParseCanonicalName;
int Microsoft.VisualStudio.Shell.Interop.IVsHierarchy.ParseCanonicalName(std::wstring const & name, [Runtime::InteropServices::Out] unsigned int & itemId);
int IVsHierarchy.ParseCanonicalName (string name, out uint itemId);
abstract member Microsoft.VisualStudio.Shell.Interop.IVsHierarchy.ParseCanonicalName : string * uint32 -> int
override this.Microsoft.VisualStudio.Shell.Interop.IVsHierarchy.ParseCanonicalName : string * uint32 -> int
Function ParseCanonicalName (name As String, ByRef itemId As UInteger) As Integer Implements IVsHierarchy.ParseCanonicalName

Parameters

name
String

The canonical name of the item.

itemId
UInt32

[out] The ID of the item.

Returns

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

Implements

Remarks

This method calls the ParseCanonicalName method, which calls the ParseCanonicalName method on the inner project.

Canonical names do not change between sessions of the environment, but item identifiers do. Use this method to manage workspace persistence, such as remembering window positions.

Applies to