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.10.0 (in Microsoft.VisualStudio.Modeling.Sdk.10.0.dll)
Syntax
'Declaração
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
- 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.