다음을 통해 공유


ISerializerLocator.GetSerializerFromFileName Method

Returns a serializer 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.10.0 (in Microsoft.VisualStudio.Modeling.Sdk.10.0.dll)

Syntax

‘선언
Function GetSerializerFromFileName ( _
    fileName As String _
) As IDomainModelSerializer
IDomainModelSerializer GetSerializerFromFileName(
    string fileName
)
IDomainModelSerializer^ GetSerializerFromFileName(
    String^ fileName
)
abstract GetSerializerFromFileName : 
        fileName:string -> IDomainModelSerializer 
function GetSerializerFromFileName(
    fileName : String
) : IDomainModelSerializer

Parameters

  • fileName
    Type: System.String
    Name of the file to be deserialized.

Return Value

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

Remarks

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

.NET Framework Security

See Also

Reference

ISerializerLocator Interface

Microsoft.VisualStudio.Modeling Namespace