Compartir a través de


SerializationErrorListItem Constructor (IServiceProvider, Guid, Guid, SerializationMessage)

Constructor

Namespace:  Microsoft.VisualStudio.Modeling.Shell
Assembly:  Microsoft.VisualStudio.Modeling.Sdk.Shell.10.0 (in Microsoft.VisualStudio.Modeling.Sdk.Shell.10.0.dll)

Syntax

'Declaración
Public Sub New ( _
    serviceProvider As IServiceProvider, _
    navigationLogicalView As Guid, _
    navigationEditorFactoryId As Guid, _
    serializationMessage As SerializationMessage _
)
public SerializationErrorListItem(
    IServiceProvider serviceProvider,
    Guid navigationLogicalView,
    Guid navigationEditorFactoryId,
    SerializationMessage serializationMessage
)
public:
SerializationErrorListItem(
    IServiceProvider^ serviceProvider, 
    Guid navigationLogicalView, 
    Guid navigationEditorFactoryId, 
    SerializationMessage^ serializationMessage
)
new : 
        serviceProvider:IServiceProvider * 
        navigationLogicalView:Guid * 
        navigationEditorFactoryId:Guid * 
        serializationMessage:SerializationMessage -> SerializationErrorListItem
public function SerializationErrorListItem(
    serviceProvider : IServiceProvider, 
    navigationLogicalView : Guid, 
    navigationEditorFactoryId : Guid, 
    serializationMessage : SerializationMessage
)

Parameters

  • serviceProvider
    Type: System.IServiceProvider
    SerivceProvider for this item. If null, the navigate functionalitity won't work.
  • navigationLogicalView
    Type: System.Guid
    If a file contains error, most likely it can't be opened in default editor view, so we need an alternative view to open it, e.g. CodeView. This parameter specifies which view should be used when opening the item during navigation (double-click in Error List window). The value is the same logical view Guids used in IVsUIShellOpenDocuments methods.
  • navigationEditorFactoryId
    Type: System.Guid
    When the specified "navigationLogicalView" is not the view of the already opened editor, the item needs to be closed and reopened. This editor factory guid specifies which editor should be used when the file is re-opened.

.NET Framework Security

See Also

Reference

SerializationErrorListItem Class

SerializationErrorListItem Overload

Microsoft.VisualStudio.Modeling.Shell Namespace