20 references to DeclaringType
System.Web.Services (20)
System\Web\Services\Description\SoapProtocolReflector.cs (2)
137throw new InvalidOperationException(Res.GetString(Res.BPConformanceHeaderFault, soapMethod.methodInfo.ToString(), soapMethod.methodInfo.DeclaringType.FullName, "Direction", typeof(SoapHeaderDirection).Name, SoapHeaderDirection.Fault.ToString())); 198throw new InvalidOperationException(Res.GetString(Res.WsdlGenRpcLitAnonimousType, Method.DeclaringType.Name, Method.Name, member.MemberName));
System\Web\Services\Protocols\HttpClientProtocol.cs (1)
54throw new InvalidOperationException(Res.GetString(Res.WebReflectionError, methodInfo.DeclaringType.FullName, methodInfo.Name), e);
System\Web\Services\Protocols\SoapReflector.cs (12)
172importer.IncludeTypes(method.DeclaringType); 239object serviceAttr = GetSoapServiceAttribute(methodInfo.DeclaringType); 452Type declaringType = methodInfo.DeclaringType; 460throw HeaderException(headerAttribute.MemberName, methodInfo.DeclaringType, Res.WebHeaderMissing); 466throw HeaderException(headerAttribute.MemberName, methodInfo.DeclaringType, Res.WebHeaderType); 468if (MemberHelper.IsStatic(soapHeader.memberInfo)) throw HeaderException(headerAttribute.MemberName, methodInfo.DeclaringType, Res.WebHeaderStatic); 469if (!MemberHelper.CanRead(soapHeader.memberInfo)) throw HeaderException(headerAttribute.MemberName, methodInfo.DeclaringType, Res.WebHeaderRead); 470if (!MemberHelper.CanWrite(soapHeader.memberInfo)) throw HeaderException(headerAttribute.MemberName, methodInfo.DeclaringType, Res.WebHeaderWrite); 471if (!typeof(SoapHeader).IsAssignableFrom(soapHeader.headerType)) throw HeaderException(headerAttribute.MemberName, methodInfo.DeclaringType, Res.WebHeaderType); 474if (soapMethod.oneWay && (direction & (SoapHeaderDirection.Out | SoapHeaderDirection.Fault)) != 0) throw HeaderException(headerAttribute.MemberName, methodInfo.DeclaringType, Res.WebHeaderOneWayOut); 478throw HeaderException(headerAttribute.MemberName, methodInfo.DeclaringType, Res.WebMultiplyDeclaredHeaderTypes); 525throw new InvalidOperationException(Res.GetString(Res.WebReflectionErrorMethod, methodInfo.DeclaringType.Name, methodInfo.Name), e);
System\Web\Services\Protocols\XmlReturnReader.cs (1)
46Evidence evidence = GetEvidenceForType(methodInfos[0].DeclaringType);
System\Web\Services\WebMethodAttribute.cs (1)
334importer.IncludeTypes(method.DeclaringType);
System\Web\Services\WebServiceAttribute.cs (2)
96Type mostDerived = methodInfos[0].DeclaringType; 98Type derived = methodInfos[i].DeclaringType;
System\Web\Services\WebServiceBindingAttribute.cs (1)
124Type type = methodInfo.DeclaringType;