SerializationErrorListItem Constructor (IServiceProvider, Guid, Guid, SerializationMessage)
Constructor
Namespace: Microsoft.VisualStudio.Modeling.Shell
Assembly: Microsoft.VisualStudio.Modeling.Sdk.Shell.11.0 (in Microsoft.VisualStudio.Modeling.Sdk.Shell.11.0.dll)
Syntax
'Declaration
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: IServiceProviderSerivceProvider for this item. If null, the navigate functionalitity won't work.
navigationLogicalView
Type: GuidIf 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: GuidWhen 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.
serializationMessage
Type: Microsoft.VisualStudio.Modeling.SerializationMessageThe SerializationMessage to be translated.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
See Also
Reference
SerializationErrorListItem Class