确定消息协定是否为生成 windows 服务引用的通信基础 (WCF)。
命名空间: Microsoft.VisualStudio.WCFReference.Interop
程序集: Microsoft.VisualStudio.WCFReference.Interop(在 Microsoft.VisualStudio.WCFReference.Interop.dll 中)
语法
声明
Function GetGenerateMessageContracts As Integer
int GetGenerateMessageContracts()
int GetGenerateMessageContracts()
abstract GetGenerateMessageContracts : unit -> int
function GetGenerateMessageContracts() : int
返回值
类型:Int32
0,如果消息协定不会生成;否则任何非零 Integer。
备注
GetGenerateMessageContracts 返回的值确定 始终生成消息协定 选项是否已注册 配置服务引用 对话框。
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关详细信息,请参阅通过部分受信任的代码使用库。