Share via


IVsWCFReferenceGroupOptions.SetSerializer(ProxySerializerType) Method

Definition

Sets the serializer to use when you generate code for a Windows Communication Foundation (WCF) client.

public:
 void SetSerializer(Microsoft::VisualStudio::WCFReference::Interop::ProxySerializerType ProxySerializerType);
public:
 void SetSerializer(Microsoft::VisualStudio::WCFReference::Interop::ProxySerializerType ProxySerializerType);
void SetSerializer(Microsoft::VisualStudio::WCFReference::Interop::ProxySerializerType ProxySerializerType);
public void SetSerializer (Microsoft.VisualStudio.WCFReference.Interop.ProxySerializerType ProxySerializerType);
abstract member SetSerializer : Microsoft.VisualStudio.WCFReference.Interop.ProxySerializerType -> unit
Public Sub SetSerializer (ProxySerializerType As ProxySerializerType)

Parameters

ProxySerializerType
ProxySerializerType

A ProxySerializerType object.

Remarks

When set to PST_Auto, the code generator tries to use the PST_DataContractSerializer, and if that fails it reverts to the PST_XmlSerializer.

Applies to