54 references to HR
System.ServiceModel (54)
System\ServiceModel\ComIntegration\CatalogUtil.cs (1)
177
if (comException.ErrorCode !=
HR
.COMADMIN_E_PARTITIONS_DISABLED)
System\ServiceModel\ComIntegration\ComPlusAuthorization.cs (5)
539
int hresult =
HR
.E_FAIL;
544
hresult =
HR
.S_OK;
550
hresult =
HR
.RPC_NT_BINDING_HAS_NO_AUTH;
564
int hresult =
HR
.E_FAIL;
571
hresult =
HR
.S_OK;
System\ServiceModel\ComIntegration\ComPlusInstanceProvider.cs (1)
65
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new COMException (SR.GetString(SR.BadImpersonationLevelForOutOfProcWas),
HR
.ERROR_BAD_IMPERSONATION_LEVEL));
System\ServiceModel\ComIntegration\ComProxy.cs (1)
44
if (hr !=
HR
.S_OK)
System\ServiceModel\ComIntegration\DispatchProxy.cs (20)
125
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new COMException(SR.GetString(SR.CannotResolveTypeForParamInMessageDescription, "ReturnValue", msgDesc.Body.WrapperName, msgDesc.Body.WrapperNamespace),
HR
.DISP_E_MEMBERNOTFOUND));
150
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new COMException(SR.GetString(SR.CannotResolveTypeForParamInMessageDescription, param.Name, msgDesc.Body.WrapperName, msgDesc.Body.WrapperNamespace),
HR
.DISP_E_MEMBERNOTFOUND));
191
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new COMException(SR.GetString(SR.OperationNotFound, rgszNames[index]),
HR
.DISP_E_UNKNOWNNAME));
212
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new COMException(SR.GetString(SR.NamedArgsNotSupported),
HR
.DISP_E_BADPARAMCOUNT));
215
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new COMException(SR.GetString(SR.BadDispID, dispIdMember),
HR
.DISP_E_MEMBERNOTFOUND));
221
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new COMException(SR.GetString(SR.BadDispID, dispIdMember),
HR
.DISP_E_BADPARAMCOUNT));
266
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new COMException(SR.GetString(SR.BadParamCount),
HR
.DISP_E_BADPARAMCOUNT));
288
return
HR
.DISP_E_EXCEPTION;
333
return
HR
.S_OK;
376
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new COMException(SR.GetString(SR.UnsupportedConversion, ret.GetType(), type.GetElementType()),
HR
.DISP_E_TYPEMISMATCH));
385
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new COMException(SR.GetString(SR.UnsupportedConversion, ret.GetType(), type),
HR
.DISP_E_TYPEMISMATCH));
404
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new COMException(SR.GetString(SR.OnlyVariantAllowedByRef),
HR
.DISP_E_TYPEMISMATCH));
408
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new COMException(SR.GetString(SR.OnlyByRefVariantSafeArraysAllowed),
HR
.DISP_E_TYPEMISMATCH));
415
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new COMException(SR.GetString(SR.OnlyOneDimensionalSafeArraysAllowed),
HR
.DISP_E_TYPEMISMATCH));
419
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new COMException(SR.GetString(SR.OnlyVariantTypeElementsAllowed),
HR
.DISP_E_TYPEMISMATCH));
423
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new COMException(SR.GetString(SR.OnlyZeroLBoundAllowed),
HR
.DISP_E_TYPEMISMATCH));
448
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new COMException(SR.GetString(SR.UnsupportedConversion, objects[0].GetType(), type.GetElementType()),
HR
.DISP_E_TYPEMISMATCH));
462
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new COMException(SR.GetString(SR.UnsupportedConversion, objects[i].GetType(), type.GetElementType()),
HR
.DISP_E_TYPEMISMATCH));
476
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new COMException(SR.GetString(SR.UnsupportedConversion, objects[i].GetType(), type.GetElementType()),
HR
.DISP_E_TYPEMISMATCH));
510
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new COMException(SR.GetString(SR.OnlyVariantAllowedByRef),
HR
.DISP_E_TYPEMISMATCH));
System\ServiceModel\ComIntegration\MexServiceChannelBuilder.cs (2)
46
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new COMException(SR.GetString(SR.TooLate),
HR
.RPC_E_TOO_LATE));
74
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new COMException(SR.GetString(SR.TooLate),
HR
.RPC_E_TOO_LATE));
System\ServiceModel\ComIntegration\MonikerSyntaxException.cs (1)
17
internal MonikerSyntaxException (string message) : base (message,
HR
.MK_E_SYNTAX)
System\ServiceModel\ComIntegration\OuterProxyWrapper.cs (2)
142
if (hr !=
HR
.S_OK)
162
if (hr !=
HR
.S_OK)
System\ServiceModel\ComIntegration\PersistStreamTypeWrapper.cs (2)
170
if (
HR
.S_OK == hr)
224
if (
HR
.S_OK == hr)
System\ServiceModel\ComIntegration\ProxyManager.cs (9)
106
return
HR
.S_OK;
123
return
HR
.S_OK;
125
return proxyCreator.SupportsErrorInfo(ref riid) ?
HR
.S_OK :
HR
.S_FALSE;
165
return
HR
.DISP_E_MEMBERNOTFOUND;
173
return
HR
.S_OK;
189
return
HR
.DISP_E_EXCEPTION;
196
return
HR
.S_OK;
198
return
HR
.E_FAIL;
System\ServiceModel\ComIntegration\SafeNativeMethods.cs (1)
557
if (hr !=
HR
.S_OK)
System\ServiceModel\ComIntegration\ServiceMoniker.cs (3)
47
return
HR
.S_FALSE;
127
return
HR
.S_FALSE;
136
return
HR
.S_FALSE;
System\ServiceModel\ComIntegration\TearOffProxy.cs (1)
65
return new ReturnMessage(DiagnosticUtility.ExceptionUtility.ThrowHelperError(new COMException(SR.GetString(SR.OperationNotFound, typeMethod.Name),
HR
.DISP_E_UNKNOWNNAME)), msg);
System\ServiceModel\ComIntegration\TransactionProxy.cs (1)
268
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new COMException(null,
HR
.CONTEXT_E_NOTRANSACTION));
System\ServiceModel\ComIntegration\TypedServiceChannelBuilder.cs (2)
56
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new COMException(SR.GetString(SR.TooLate),
HR
.RPC_E_TOO_LATE));
75
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new COMException(SR.GetString(SR.TooLate),
HR
.RPC_E_TOO_LATE));
System\ServiceModel\ComIntegration\WsdlServiceChannelBuilder.cs (2)
44
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new COMException(SR.GetString(SR.TooLate),
HR
.RPC_E_TOO_LATE));
72
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new COMException(SR.GetString(SR.TooLate),
HR
.RPC_E_TOO_LATE));