System.Runtime.Remoting.InternalRemotingServices.GetCachedSoapAttribute C# (CSharp) Méthode

GetCachedSoapAttribute() public static méthode

public static GetCachedSoapAttribute ( Object reflectionObject ) : SoapAttribute
reflectionObject Object
Résultat SoapAttribute
        public static SoapAttribute GetCachedSoapAttribute(Object reflectionObject)
        {
            MemberInfo mi = reflectionObject as MemberInfo;
            if (mi != null)
                return GetReflectionCachedData(mi).GetSoapAttribute();
            else
                return GetReflectionCachedData((ParameterInfo)reflectionObject).GetSoapAttribute();
        } // GetCachedSoapAttribute
        

Usage Example

Exemple #1
0
        } // GetXmlElementForInteropType

        /// <include file='doc\Soap.uex' path='docs/doc[@for="SoapServices.GetXmlTypeForInteropType"]/*' />
        public static bool GetXmlTypeForInteropType(Type type,
                                                    out String xmlType, out String xmlTypeNamespace)
        {
            // check table first
            XmlEntry entry = (XmlEntry)_interopTypeToXmlType[type];

            if (entry != null)
            {
                xmlType          = entry.Name;
                xmlTypeNamespace = entry.Namespace;
                return(true);
            }

            // check soap attribute
            SoapTypeAttribute attr = (SoapTypeAttribute)
                                     InternalRemotingServices.GetCachedSoapAttribute(type);

            if (attr.IsInteropXmlType())
            {
                xmlType          = attr.XmlTypeName;
                xmlTypeNamespace = attr.XmlTypeNamespace;
                return(true);
            }
            else
            {
                xmlType          = null;
                xmlTypeNamespace = null;
                return(false);
            }
        } // GetXmlTypeForInteropType
All Usage Examples Of System.Runtime.Remoting.InternalRemotingServices::GetCachedSoapAttribute