Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / clr / src / BCL / System / MissingFieldException.cs / 1305376 / MissingFieldException.cs
// ==++== // // Copyright (c) Microsoft Corporation. All rights reserved. // // ==--== /*============================================================================== ** ** Class: MissingFieldException ** ** Purpose: The exception class for class loading failures. ** =============================================================================*/ namespace System { using System; using System.Runtime.Remoting; using System.Runtime.Serialization; using System.Runtime.CompilerServices; using System.Globalization; [System.Runtime.InteropServices.ComVisible(true)] [Serializable] public class MissingFieldException : MissingMemberException, ISerializable { public MissingFieldException() : base(Environment.GetResourceString("Arg_MissingFieldException")) { SetErrorCode(__HResults.COR_E_MISSINGFIELD); } public MissingFieldException(String message) : base(message) { SetErrorCode(__HResults.COR_E_MISSINGFIELD); } public MissingFieldException(String message, Exception inner) : base(message, inner) { SetErrorCode(__HResults.COR_E_MISSINGFIELD); } [System.Security.SecuritySafeCritical] // auto-generated protected MissingFieldException(SerializationInfo info, StreamingContext context) : base(info, context) { } public override String Message { [System.Security.SecuritySafeCritical] // auto-generated get { if (ClassName == null) { return base.Message; } else { // do any desired fixups to classname here. return Environment.GetResourceString("MissingField_Name", (Signature != null ? FormatSignature(Signature) + " " : "") + ClassName + "." + MemberName); } } } // Called from the EE private MissingFieldException(String className, String fieldName, byte[] signature) { ClassName = className; MemberName = fieldName; Signature = signature; } public MissingFieldException(String className, String fieldName) { ClassName = className; MemberName = fieldName; } // If ClassName != null, Message will construct on the fly using it // and the other variables. This allows customization of the // format depending on the language environment. } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // ==++== // // Copyright (c) Microsoft Corporation. All rights reserved. // // ==--== /*============================================================================== ** ** Class: MissingFieldException ** ** Purpose: The exception class for class loading failures. ** =============================================================================*/ namespace System { using System; using System.Runtime.Remoting; using System.Runtime.Serialization; using System.Runtime.CompilerServices; using System.Globalization; [System.Runtime.InteropServices.ComVisible(true)] [Serializable] public class MissingFieldException : MissingMemberException, ISerializable { public MissingFieldException() : base(Environment.GetResourceString("Arg_MissingFieldException")) { SetErrorCode(__HResults.COR_E_MISSINGFIELD); } public MissingFieldException(String message) : base(message) { SetErrorCode(__HResults.COR_E_MISSINGFIELD); } public MissingFieldException(String message, Exception inner) : base(message, inner) { SetErrorCode(__HResults.COR_E_MISSINGFIELD); } [System.Security.SecuritySafeCritical] // auto-generated protected MissingFieldException(SerializationInfo info, StreamingContext context) : base(info, context) { } public override String Message { [System.Security.SecuritySafeCritical] // auto-generated get { if (ClassName == null) { return base.Message; } else { // do any desired fixups to classname here. return Environment.GetResourceString("MissingField_Name", (Signature != null ? FormatSignature(Signature) + " " : "") + ClassName + "." + MemberName); } } } // Called from the EE private MissingFieldException(String className, String fieldName, byte[] signature) { ClassName = className; MemberName = fieldName; Signature = signature; } public MissingFieldException(String className, String fieldName) { ClassName = className; MemberName = fieldName; } // If ClassName != null, Message will construct on the fly using it // and the other variables. This allows customization of the // format depending on the language environment. } } // 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
- AuthenticatedStream.cs
- WorkflowOwnershipException.cs
- WhitespaceRule.cs
- ADConnectionHelper.cs
- Visual3D.cs
- GraphicsState.cs
- IMembershipProvider.cs
- PlatformNotSupportedException.cs
- DataGridViewColumn.cs
- ListViewUpdateEventArgs.cs
- XPathScanner.cs
- HostProtectionPermission.cs
- AttachInfo.cs
- PenContext.cs
- CssStyleCollection.cs
- UrlRoutingModule.cs
- RectAnimationBase.cs
- GeneralTransformCollection.cs
- TableParaClient.cs
- ApplicationCommands.cs
- SerializationInfoEnumerator.cs
- NextPreviousPagerField.cs
- UserControlBuildProvider.cs
- Help.cs
- WorkflowItemPresenter.cs
- SrgsText.cs
- CapabilitiesUse.cs
- TextContainerHelper.cs
- EncryptedReference.cs
- ValidatedControlConverter.cs
- dtdvalidator.cs
- SByteStorage.cs
- OleDbConnectionPoolGroupProviderInfo.cs
- ConfigurationSection.cs
- PointConverter.cs
- EncoderReplacementFallback.cs
- DocumentPaginator.cs
- ClosableStream.cs
- NetworkInformationPermission.cs
- DiscoveryCallbackBehavior.cs
- TransportConfigurationTypeElementCollection.cs
- Overlapped.cs
- SafeBitVector32.cs
- ColorAnimation.cs
- Int64AnimationBase.cs
- TypeToken.cs
- ChannelBinding.cs
- SelectionPattern.cs
- RuntimeConfigLKG.cs
- SqlTransaction.cs
- WsdlBuildProvider.cs
- ScriptRegistrationManager.cs
- ParentUndoUnit.cs
- StrongNameHelpers.cs
- WebFaultException.cs
- ContainerVisual.cs
- BitmapCodecInfoInternal.cs
- MetabaseReader.cs
- Package.cs
- LoggedException.cs
- HtmlSelect.cs
- IntSecurity.cs
- XmlSerializerNamespaces.cs
- CustomAttributeSerializer.cs
- RightsManagementPermission.cs
- WindowsGraphicsCacheManager.cs
- DataGridPageChangedEventArgs.cs
- HttpResponseWrapper.cs
- CodeMethodInvokeExpression.cs
- DataServiceKeyAttribute.cs
- TokenizerHelper.cs
- ResourceReader.cs
- ViewBox.cs
- NegationPusher.cs
- DataBoundLiteralControl.cs
- Point4DValueSerializer.cs
- XmlChoiceIdentifierAttribute.cs
- XmlSchemaInferenceException.cs
- CodeMemberField.cs
- MouseEventArgs.cs
- SafeWaitHandle.cs
- StateMachineWorkflowInstance.cs
- WeakReferenceList.cs
- RawStylusInputCustomData.cs
- DataServiceQueryOfT.cs
- RequestCacheValidator.cs
- _KerberosClient.cs
- IpcChannelHelper.cs
- PersonalizationStateQuery.cs
- WindowsAuthenticationModule.cs
- XmlSchemaProviderAttribute.cs
- Permission.cs
- XmlReflectionImporter.cs
- BamlRecordWriter.cs
- CollectionType.cs
- SystemIcons.cs
- IriParsingElement.cs
- ReflectionPermission.cs
- TextBox.cs
- VarInfo.cs