共用方式為


VsShellUtilities.OpenAsMiscellaneousFile Method

Opens the specified miscellaneous file in the specified editor.

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

Syntax

'宣告
Public Shared Sub OpenAsMiscellaneousFile ( _
    provider As IServiceProvider, _
    path As String, _
    caption As String, _
    editor As Guid, _
    physicalView As String, _
    logicalView As Guid _
)
'用途
Dim provider As IServiceProvider
Dim path As String
Dim caption As String
Dim editor As Guid
Dim physicalView As String
Dim logicalView As Guid

VsShellUtilities.OpenAsMiscellaneousFile(provider, _
    path, caption, editor, physicalView, _
    logicalView)
public static void OpenAsMiscellaneousFile(
    IServiceProvider provider,
    string path,
    string caption,
    Guid editor,
    string physicalView,
    Guid logicalView
)
public:
static void OpenAsMiscellaneousFile(
    IServiceProvider^ provider, 
    String^ path, 
    String^ caption, 
    Guid editor, 
    String^ physicalView, 
    Guid logicalView
)
static member OpenAsMiscellaneousFile : 
        provider:IServiceProvider * 
        path:string * 
        caption:string * 
        editor:Guid * 
        physicalView:string * 
        logicalView:Guid -> unit 
public static function OpenAsMiscellaneousFile(
    provider : IServiceProvider, 
    path : String, 
    caption : String, 
    editor : Guid, 
    physicalView : String, 
    logicalView : Guid
)

Parameters

  • editor
    Type: System.Guid
    The GUID of the editor in which to open the file.
  • physicalView
    Type: System.String
    The name of the kind of window in which to open the editor.

.NET Framework Security

See Also

Reference

VsShellUtilities Class

VsShellUtilities Members

Microsoft.VisualStudio.Shell Namespace