Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / clr / src / BCL / System / Security / Policy / PolicyException.cs / 1305376 / PolicyException.cs
// ==++== // // Copyright (c) Microsoft Corporation. All rights reserved. // // ==--== // PolicyException.cs // //[....] // // Use this class to throw a PolicyException // namespace System.Security.Policy { using System; using System.Runtime.Serialization; [Serializable] [System.Runtime.InteropServices.ComVisible(true)] public class PolicyException : SystemException { public PolicyException() : base(Environment.GetResourceString( "Policy_Default" )) { HResult = __HResults.CORSEC_E_POLICY_EXCEPTION; } public PolicyException(String message) : base(message) { HResult = __HResults.CORSEC_E_POLICY_EXCEPTION; } public PolicyException(String message, Exception exception) : base(message, exception) { HResult = __HResults.CORSEC_E_POLICY_EXCEPTION; } [System.Security.SecuritySafeCritical] // auto-generated protected PolicyException(SerializationInfo info, StreamingContext context) : base (info, context) {} internal PolicyException(String message, int hresult) : base (message) { HResult = hresult; } internal PolicyException(String message, int hresult, Exception exception) : base (message, exception) { HResult = hresult; } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // ==++== // // Copyright (c) Microsoft Corporation. All rights reserved. // // ==--== // PolicyException.cs // //[....] // // Use this class to throw a PolicyException // namespace System.Security.Policy { using System; using System.Runtime.Serialization; [Serializable] [System.Runtime.InteropServices.ComVisible(true)] public class PolicyException : SystemException { public PolicyException() : base(Environment.GetResourceString( "Policy_Default" )) { HResult = __HResults.CORSEC_E_POLICY_EXCEPTION; } public PolicyException(String message) : base(message) { HResult = __HResults.CORSEC_E_POLICY_EXCEPTION; } public PolicyException(String message, Exception exception) : base(message, exception) { HResult = __HResults.CORSEC_E_POLICY_EXCEPTION; } [System.Security.SecuritySafeCritical] // auto-generated protected PolicyException(SerializationInfo info, StreamingContext context) : base (info, context) {} internal PolicyException(String message, int hresult) : base (message) { HResult = hresult; } internal PolicyException(String message, int hresult, Exception exception) : base (message, exception) { HResult = hresult; } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- SslStream.cs
- StreamWithDictionary.cs
- Logging.cs
- XmlSchemaSimpleContentExtension.cs
- XmlDocumentType.cs
- CommentAction.cs
- Attributes.cs
- XamlSerializer.cs
- XmlCustomFormatter.cs
- ItemChangedEventArgs.cs
- Stackframe.cs
- StateChangeEvent.cs
- Soap12ServerProtocol.cs
- isolationinterop.cs
- EntityAdapter.cs
- ResourcePropertyMemberCodeDomSerializer.cs
- WSFederationHttpSecurityMode.cs
- WebControl.cs
- CheckableControlBaseAdapter.cs
- PackWebResponse.cs
- RecognizeCompletedEventArgs.cs
- RequestCacheEntry.cs
- ConcatQueryOperator.cs
- CreateParams.cs
- TextTreeTextElementNode.cs
- ReferencedType.cs
- HttpContextWrapper.cs
- NamespaceList.cs
- InputScope.cs
- AnnotationComponentChooser.cs
- MenuStrip.cs
- ResourceDescriptionAttribute.cs
- SqlTrackingQuery.cs
- LightweightEntityWrapper.cs
- SystemBrushes.cs
- RepeaterItemEventArgs.cs
- ListDictionaryInternal.cs
- WSTrustFeb2005.cs
- RangeContentEnumerator.cs
- ImageClickEventArgs.cs
- TextRangeEdit.cs
- ClickablePoint.cs
- SafeWaitHandle.cs
- NativeStructs.cs
- LogSwitch.cs
- ApplicationId.cs
- WebPartAuthorizationEventArgs.cs
- StaticDataManager.cs
- TriggerCollection.cs
- processwaithandle.cs
- PersistencePipeline.cs
- BindingExpression.cs
- TableRow.cs
- Brushes.cs
- RoleManagerModule.cs
- PackageFilter.cs
- ProviderMetadataCachedInformation.cs
- StateDesigner.Helpers.cs
- Material.cs
- WebBrowser.cs
- DesignerDataView.cs
- TreeNodeStyleCollection.cs
- StringFreezingAttribute.cs
- Directory.cs
- WindowsListViewSubItem.cs
- RelationshipSet.cs
- BmpBitmapEncoder.cs
- ServiceMetadataContractBehavior.cs
- _DigestClient.cs
- ResourceWriter.cs
- ScopelessEnumAttribute.cs
- UriTemplateDispatchFormatter.cs
- SimpleBitVector32.cs
- translator.cs
- RowVisual.cs
- RequestBringIntoViewEventArgs.cs
- CacheModeValueSerializer.cs
- NamespaceInfo.cs
- SimpleBitVector32.cs
- OdbcDataReader.cs
- TearOffProxy.cs
- Errors.cs
- ArrayWithOffset.cs
- NativeMethodsOther.cs
- PartialCachingAttribute.cs
- MimeReturn.cs
- ZipIOLocalFileBlock.cs
- ElementAction.cs
- mediaeventshelper.cs
- InvalidOperationException.cs
- UriSection.cs
- SettingsPropertyWrongTypeException.cs
- RSAOAEPKeyExchangeDeformatter.cs
- MLangCodePageEncoding.cs
- LambdaReference.cs
- InvalidDataException.cs
- IPipelineRuntime.cs
- CommandEventArgs.cs
- Dump.cs
- base64Transforms.cs