Share via


StandardSerializerLocator.GetSerializerFromFileName Method

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

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

Syntax

'Declaration
Public Function GetSerializerFromFileName ( _
    fileName As String _
) As IDomainModelSerializer
public IDomainModelSerializer GetSerializerFromFileName(
    string fileName
)
public:
virtual IDomainModelSerializer^ GetSerializerFromFileName(
    String^ fileName
) sealed
abstract GetSerializerFromFileName : 
        fileName:string -> IDomainModelSerializer  
override GetSerializerFromFileName : 
        fileName:string -> IDomainModelSerializer
public final function GetSerializerFromFileName(
    fileName : String
) : IDomainModelSerializer

Parameters

  • fileName
    Type: System.String

    Name of the file to be deserialized, or the file extension.

Return Value

Type: Microsoft.VisualStudio.Modeling.IDomainModelSerializer
A serializer that deserialize the model

Implements

ISerializerLocator.GetSerializerFromFileName(String)

Remarks

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

.NET Framework Security

See Also

Reference

StandardSerializerLocator Class

Microsoft.VisualStudio.Modeling Namespace