MetadataImporter.KnownContracts 属性

定义

获取按导入程序了解的名称排列的协定字典。Gets a dictionary of contracts by name that the importer knows about.

public:
 property System::Collections::Generic::Dictionary<System::Xml::XmlQualifiedName ^, System::ServiceModel::Description::ContractDescription ^> ^ KnownContracts { System::Collections::Generic::Dictionary<System::Xml::XmlQualifiedName ^, System::ServiceModel::Description::ContractDescription ^> ^ get(); };
public System.Collections.Generic.Dictionary<System.Xml.XmlQualifiedName,System.ServiceModel.Description.ContractDescription> KnownContracts { get; }
member this.KnownContracts : System.Collections.Generic.Dictionary<System.Xml.XmlQualifiedName, System.ServiceModel.Description.ContractDescription>
Public ReadOnly Property KnownContracts As Dictionary(Of XmlQualifiedName, ContractDescription)

属性值

Dictionary<XmlQualifiedName,ContractDescription>

按 XML 限定名称列出的协定字典。A dictionary of contracts listed by XML qualified name.

注解

使用 KnownContracts 属性可添加或移除协定说明和导入程序可引用的其关联 XML 名称。Use the KnownContracts property to add or remove contract descriptions and their associated XML names that the importer can reference.

适用于