共用方式為


GETNAME_TYPE

Specifies the name type of files to retrieve.

enum enum_GETNAME_TYPE { 
   GN_NAME         = 0,
   GN_FILENAME     = 1,
   GN_BASENAME     = 2,
   GN_MONIKERNAME  = 3,
   GN_URL          = 4,
   GN_TITLE        = 5,
   GN_STARTPAGEURL = 6
};
typedef DWORD GETNAME_TYPE;
public enum enum_GETNAME_TYPE { 
   GN_NAME         = 0,
   GN_FILENAME     = 1,
   GN_BASENAME     = 2,
   GN_MONIKERNAME  = 3,
   GN_URL          = 4,
   GN_TITLE        = 5,
   GN_STARTPAGEURL = 6
};

Members

  • GN_NAME
    Specifies a friendly name of the document or context.

  • GN_FILENAME
    Specifies the full path of the document or context.

  • GN_BASENAME
    Specifies a base file name instead of a full path of the document or context.

  • GN_MONIKERNAME
    Specifies a unique name of the document or context in the form of a moniker.

  • GN_URL
    Specifies a URL name of the document or context.

  • GN_TITLE
    Specifies a title of the document, if one exists.

  • GN_STARTPAGEURL
    Gets the starting page URL for processes.

Remarks

These values are passed as parameters to the IDebugDocument2::GetName, IDebugDocumentContext2::GetName, and IDebugProcess2::GetName methods to specify what kind of name to return.

Requirements

Header: msdbg.h

Namespace: Microsoft.VisualStudio.Debugger.Interop

Assembly: Microsoft.VisualStudio.Debugger.Interop.dll

See Also

Reference

Enumerations (Visual Studio Debugging)

IDebugDocument2::GetName

IDebugDocumentContext2::GetName

IDebugProcess2::GetName