Udostępnij za pośrednictwem


StandardSerializerLocator.GetSerializerFromFileName(String) Method

Definition

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

public:
 virtual Microsoft::VisualStudio::Modeling::IDomainModelSerializer ^ GetSerializerFromFileName(System::String ^ fileName);
public Microsoft.VisualStudio.Modeling.IDomainModelSerializer GetSerializerFromFileName (string fileName);
abstract member GetSerializerFromFileName : string -> Microsoft.VisualStudio.Modeling.IDomainModelSerializer
override this.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 deserialize the model

Implements

Remarks

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

Applies to