IVsWCFReferenceGroupOptions.SetSerializer Method
Sets the serializer to use when you generate code for a Windows Communication Foundation (WCF) client.
Namespace: Microsoft.VisualStudio.WCFReference.Interop
Assembly: Microsoft.VisualStudio.WCFReference.Interop (in Microsoft.VisualStudio.WCFReference.Interop.dll)
Syntax
'宣言
Sub SetSerializer ( _
ProxySerializerType As ProxySerializerType _
)
void SetSerializer(
ProxySerializerType ProxySerializerType
)
void SetSerializer(
[InAttribute] ProxySerializerType ProxySerializerType
)
abstract SetSerializer :
ProxySerializerType:ProxySerializerType -> unit
function SetSerializer(
ProxySerializerType : ProxySerializerType
)
Parameters
- ProxySerializerType
Type: Microsoft.VisualStudio.WCFReference.Interop.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.
.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.