次の方法で共有


FlavoredProject.IVsUIHierarchy.ParseCanonicalName Method

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

Namespace:  Microsoft.VisualStudio.Shell.Flavor
Assemblies:   Microsoft.VisualStudio.Shell.9.0 (in Microsoft.VisualStudio.Shell.9.0.dll)
  Microsoft.VisualStudio.Shell (in Microsoft.VisualStudio.Shell.dll)
  Microsoft.VisualStudio.Shell.10.0 (in Microsoft.VisualStudio.Shell.10.0.dll)

Syntax

'宣言
Private Function ParseCanonicalName ( _
    pszName As String, _
    <OutAttribute> ByRef pitemid As UInteger _
) As Integer Implements IVsUIHierarchy.ParseCanonicalName
'使用
Dim instance As FlavoredProject
Dim pszName As String
Dim pitemid As UInteger
Dim returnValue As Integer

returnValue = CType(instance, IVsUIHierarchy).ParseCanonicalName(pszName, _
    pitemid)
int IVsUIHierarchy.ParseCanonicalName(
    string pszName,
    out uint pitemid
)
private:
virtual int ParseCanonicalName(
    String^ pszName, 
    [OutAttribute] unsigned int% pitemid
) sealed = IVsUIHierarchy::ParseCanonicalName
private abstract ParseCanonicalName : 
        pszName:string * 
        pitemid:uint32 byref -> int 
private override ParseCanonicalName : 
        pszName:string * 
        pitemid:uint32 byref -> int 
JScript does not support explicit interface implementations.

Parameters

Return Value

Type: System.Int32
If the method succeeds, it returns S_OK. If it fails, it returns an error code.

Implements

IVsUIHierarchy.ParseCanonicalName(String, UInt32%)

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.

.NET Framework Security

See Also

Reference

FlavoredProject Class

FlavoredProject Members

Microsoft.VisualStudio.Shell.Flavor Namespace