ISerializerLocator.GetSerializerFromFileName(String) Method

Definition

Returns a serializer that handles files of the specified type, or null if an appropriate serializer could not be found.

public:
 Microsoft::VisualStudio::Modeling::IDomainModelSerializer ^ GetSerializerFromFileName(System::String ^ fileName);
public Microsoft.VisualStudio.Modeling.IDomainModelSerializer GetSerializerFromFileName (string fileName);
abstract member GetSerializerFromFileName : string -> Microsoft.VisualStudio.Modeling.IDomainModelSerializer
Public Function GetSerializerFromFileName (fileName As String) As IDomainModelSerializer

Parameters

fileName
String

Name of the file to be deserialized.

Returns

A serializer that can serialize the model

Remarks

The fileName parameter can be the filename, or just the file extension (with or without ".")

Applies to