Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / ndp / clr / src / BCL / System / Runtime / InteropServices / MarshalDirectiveException.cs / 1 / MarshalDirectiveException.cs
// ==++== // // Copyright (c) Microsoft Corporation. All rights reserved. // // ==--== /*============================================================================== ** ** Class: MarshalDirectiveException ** ** Purpose: This exception is thrown when the marshaller encounters a signature ** that has an invalid MarshalAs CA for a given argument or is not ** supported. ** =============================================================================*/ namespace System.Runtime.InteropServices { using System; using System.Runtime.Serialization; [System.Runtime.InteropServices.ComVisible(true)] [Serializable()] public class MarshalDirectiveException : SystemException { public MarshalDirectiveException() : base(Environment.GetResourceString("Arg_MarshalDirectiveException")) { SetErrorCode(__HResults.COR_E_MARSHALDIRECTIVE); } public MarshalDirectiveException(String message) : base(message) { SetErrorCode(__HResults.COR_E_MARSHALDIRECTIVE); } public MarshalDirectiveException(String message, Exception inner) : base(message, inner) { SetErrorCode(__HResults.COR_E_MARSHALDIRECTIVE); } protected MarshalDirectiveException(SerializationInfo info, StreamingContext context) : base(info, context) { } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // ==++== // // Copyright (c) Microsoft Corporation. All rights reserved. // // ==--== /*============================================================================== ** ** Class: MarshalDirectiveException ** ** Purpose: This exception is thrown when the marshaller encounters a signature ** that has an invalid MarshalAs CA for a given argument or is not ** supported. ** =============================================================================*/ namespace System.Runtime.InteropServices { using System; using System.Runtime.Serialization; [System.Runtime.InteropServices.ComVisible(true)] [Serializable()] public class MarshalDirectiveException : SystemException { public MarshalDirectiveException() : base(Environment.GetResourceString("Arg_MarshalDirectiveException")) { SetErrorCode(__HResults.COR_E_MARSHALDIRECTIVE); } public MarshalDirectiveException(String message) : base(message) { SetErrorCode(__HResults.COR_E_MARSHALDIRECTIVE); } public MarshalDirectiveException(String message, Exception inner) : base(message, inner) { SetErrorCode(__HResults.COR_E_MARSHALDIRECTIVE); } protected MarshalDirectiveException(SerializationInfo info, StreamingContext context) : base(info, context) { } } } // 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
- ReflectionUtil.cs
- ObjectConverter.cs
- StickyNoteHelper.cs
- DeploymentSection.cs
- SqlStream.cs
- ComAdminInterfaces.cs
- Font.cs
- SchemaRegistration.cs
- XomlCompilerResults.cs
- LoginName.cs
- StrictAndMessageFilter.cs
- BinaryConverter.cs
- SignedPkcs7.cs
- COM2PropertyPageUITypeConverter.cs
- DesignerActionMethodItem.cs
- X509PeerCertificateAuthenticationElement.cs
- cookieexception.cs
- HtmlValidatorAdapter.cs
- OrderedDictionary.cs
- CalendarAutoFormatDialog.cs
- FlowDocumentView.cs
- EdmToObjectNamespaceMap.cs
- Predicate.cs
- DbProviderManifest.cs
- _HeaderInfoTable.cs
- XmlQueryType.cs
- OutputCacheProviderCollection.cs
- FactoryId.cs
- CommonGetThemePartSize.cs
- CustomUserNameSecurityTokenAuthenticator.cs
- BasicDesignerLoader.cs
- Base64Encoder.cs
- RightsManagementEncryptionTransform.cs
- backend.cs
- FormsAuthenticationTicket.cs
- Debug.cs
- ThemeableAttribute.cs
- WindowsNonControl.cs
- SingleConverter.cs
- PropertyPath.cs
- InvokePatternIdentifiers.cs
- IgnoreFlushAndCloseStream.cs
- KeyValueSerializer.cs
- Emitter.cs
- ValidationEventArgs.cs
- Context.cs
- _OSSOCK.cs
- WhiteSpaceTrimStringConverter.cs
- GPPOINTF.cs
- AssemblyEvidenceFactory.cs
- FigureParagraph.cs
- WebBrowsableAttribute.cs
- IndexedEnumerable.cs
- ProcessManager.cs
- OdbcFactory.cs
- OracleCommandBuilder.cs
- MethodCallTranslator.cs
- xmlsaver.cs
- WindowsSecurityTokenAuthenticator.cs
- ListBindingHelper.cs
- SqlServer2KCompatibilityAnnotation.cs
- GC.cs
- TextHintingModeValidation.cs
- XmlWriterDelegator.cs
- FileLevelControlBuilderAttribute.cs
- Animatable.cs
- MachinePropertyVariants.cs
- CodeNamespaceImportCollection.cs
- Internal.cs
- Exceptions.cs
- ArraySortHelper.cs
- SingleKeyFrameCollection.cs
- Emitter.cs
- KeyInstance.cs
- TimeoutException.cs
- ServiceDescription.cs
- WindowsAuthenticationEventArgs.cs
- LayoutInformation.cs
- DependencyProperty.cs
- KernelTypeValidation.cs
- DataPagerField.cs
- WsdlWriter.cs
- XmlDocument.cs
- CreateUserWizardStep.cs
- CanExpandCollapseAllConverter.cs
- ComplexBindingPropertiesAttribute.cs
- basenumberconverter.cs
- StopStoryboard.cs
- ReadWriteControlDesigner.cs
- X509SecurityTokenParameters.cs
- RepeatInfo.cs
- TextElement.cs
- SizeConverter.cs
- DocumentXPathNavigator.cs
- InputScopeAttribute.cs
- SHA512.cs
- ListQueryResults.cs
- MetadataItemEmitter.cs
- SafeFileMappingHandle.cs
- DefinitionUpdate.cs