设置序列化程序时要使用生成 windows communication foundation (WCF) 的客户端代码。
命名空间: Microsoft.VisualStudio.WCFReference.Interop
程序集: Microsoft.VisualStudio.WCFReference.Interop(在 Microsoft.VisualStudio.WCFReference.Interop.dll 中)
语法
声明
Sub SetSerializer ( _
ProxySerializerType As ProxySerializerType _
)
void SetSerializer(
ProxySerializerType ProxySerializerType
)
void SetSerializer(
[InAttribute] ProxySerializerType ProxySerializerType
)
abstract SetSerializer :
ProxySerializerType:ProxySerializerType -> unit
function SetSerializer(
ProxySerializerType : ProxySerializerType
)
参数
ProxySerializerType
类型:Microsoft.VisualStudio.WCFReference.Interop.ProxySerializerType
备注
当设置为 PST_Auto,代码生成器尝试使用 PST_DataContractSerializer,,并且,如果失败还原到 PST_XmlSerializer。
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关详细信息,请参阅通过部分受信任的代码使用库。