System.Runtime.Remoting.SoapServices.RegisterInteropXmlElement C# (CSharp) Méthode

RegisterInteropXmlElement() public static méthode

public static RegisterInteropXmlElement ( String xmlElement, String xmlNamespace, Type type ) : void
xmlElement String
xmlNamespace String
type System.Type
Résultat void
        public static void RegisterInteropXmlElement(String xmlElement, String xmlNamespace,
                                                     Type type)
        {
            _interopXmlElementToType[CreateKey(xmlElement, xmlNamespace)] = type;
            _interopTypeToXmlElement[type] = new XmlEntry(xmlElement, xmlNamespace);
        } // RegisterInteropXmlElement

Usage Example

 internal void StoreInteropEntries(RemotingXmlConfigFileData configData)
 {
     foreach (RemotingXmlConfigFileData.InteropXmlElementEntry entry in configData.InteropXmlElementEntries)
     {
         Type type = Assembly.Load(entry.UrtAssemblyName).GetType(entry.UrtTypeName);
         SoapServices.RegisterInteropXmlElement(entry.XmlElementName, entry.XmlElementNamespace, type);
     }
     foreach (RemotingXmlConfigFileData.InteropXmlTypeEntry entry2 in configData.InteropXmlTypeEntries)
     {
         Type type2 = Assembly.Load(entry2.UrtAssemblyName).GetType(entry2.UrtTypeName);
         SoapServices.RegisterInteropXmlType(entry2.XmlTypeName, entry2.XmlTypeNamespace, type2);
     }
     foreach (RemotingXmlConfigFileData.PreLoadEntry entry3 in configData.PreLoadEntries)
     {
         Assembly assembly = Assembly.Load(entry3.AssemblyName);
         if (entry3.TypeName != null)
         {
             SoapServices.PreLoad(assembly.GetType(entry3.TypeName));
         }
         else
         {
             SoapServices.PreLoad(assembly);
         }
     }
 }
All Usage Examples Of System.Runtime.Remoting.SoapServices::RegisterInteropXmlElement