FlavoredProject::IVsHierarchy::ParseCanonicalName Method (String^, UInt32)
Visual Studio 2015
Returns the identifier of the hierarchy item, given its canonical name.
Assembly: Microsoft.VisualStudio.Shell.14.0 (in Microsoft.VisualStudio.Shell.14.0.dll)
private: virtual int ParseCanonicalName( String^ name, [OutAttribute] unsigned int% itemId ) sealed = IVsHierarchy::ParseCanonicalName
Parameters
- name
-
Type:
System::String^
The canonical name of the item.
- itemId
-
Type:
System::UInt32
[out] The ID of the item.
Return Value
Type: System::Int32If the method succeeds, it returns S_OK. If it fails, it returns an error code.
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.
Show: