Code:
/ FXUpdate3074 / FXUpdate3074 / 1.1 / untmp / whidbey / QFE / ndp / clr / src / BCL / System / Runtime / InteropServices / ExtensibleClassFactory.cs / 1 / ExtensibleClassFactory.cs
// ==++== // // Copyright (c) Microsoft Corporation. All rights reserved. // // ==--== /*============================================================================== ** ** Class: ExtensibleClassFactory ** ** ** Purpose: Methods used to customize the creation of managed objects that ** extend from unmanaged objects. ** ** =============================================================================*/ namespace System.Runtime.InteropServices { using System.Runtime.InteropServices; using System.Runtime.Remoting; using System.Runtime.CompilerServices; using System; [System.Runtime.InteropServices.ComVisible(true)] public sealed class ExtensibleClassFactory { // Prevent instantiation. private ExtensibleClassFactory() {} // Register a delegate that will be called whenever an instance of a managed // type that extends from an unmanaged type needs to allocate the aggregated // unmanaged object. This delegate is expected to allocate and aggregate the // unmanaged object and is called in place of a CoCreateInstance. This // routine must be called in the context of the static initializer for the // class for which the callbacks will be made. // It is not legal to register this callback from a class that has any // parents that have already registered a callback. [MethodImplAttribute(MethodImplOptions.InternalCall)] public static extern void RegisterObjectCreationCallback(ObjectCreationDelegate callback); } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- UIElementPropertyUndoUnit.cs
- KeyTimeConverter.cs
- RegionIterator.cs
- LinearQuaternionKeyFrame.cs
- UserMapPath.cs
- ProgressBarAutomationPeer.cs
- ComponentChangedEvent.cs
- QueueException.cs
- ThrowHelper.cs
- XamlVector3DCollectionSerializer.cs
- DigestComparer.cs
- SmtpReplyReaderFactory.cs
- IndentedWriter.cs
- _LocalDataStoreMgr.cs
- CommandLibraryHelper.cs
- XmlAnyElementAttributes.cs
- AQNBuilder.cs
- CoreSwitches.cs
- SqlProfileProvider.cs
- DataGridRowDetailsEventArgs.cs
- XmlCDATASection.cs
- FileDialog_Vista_Interop.cs
- ObjectQuery_EntitySqlExtensions.cs
- X509LogoTypeExtension.cs
- ContainerFilterService.cs
- COM2Properties.cs
- XmlReflectionImporter.cs
- EventInfo.cs
- SqlDataAdapter.cs
- WebContext.cs
- ImageInfo.cs
- Int16Converter.cs
- SQLDouble.cs
- UIntPtr.cs
- DatePickerAutomationPeer.cs
- SqlStream.cs
- TableProviderWrapper.cs
- JournalEntryListConverter.cs
- RectAnimationUsingKeyFrames.cs
- ErrorFormatterPage.cs
- FormatterServices.cs
- ListViewItemSelectionChangedEvent.cs
- HtmlInputControl.cs
- VoiceObjectToken.cs
- UIPermission.cs
- ObjectDataSourceView.cs
- LambdaCompiler.Logical.cs
- NameValueConfigurationCollection.cs
- UserPreferenceChangingEventArgs.cs
- BitStream.cs
- StatusStrip.cs
- TextParentUndoUnit.cs
- CatalogZoneBase.cs
- PackageStore.cs
- PocoEntityKeyStrategy.cs
- PrintDocument.cs
- CounterSampleCalculator.cs
- DoubleAverageAggregationOperator.cs
- ApplicationInfo.cs
- MediaPlayer.cs
- VerticalAlignConverter.cs
- EventSourceCreationData.cs
- UseLicense.cs
- ImageListUtils.cs
- XhtmlBasicCalendarAdapter.cs
- TagPrefixCollection.cs
- Resources.Designer.cs
- ParsedAttributeCollection.cs
- OutgoingWebRequestContext.cs
- ParameterModifier.cs
- Atom10FormatterFactory.cs
- ResourceIDHelper.cs
- AccessControlList.cs
- FolderBrowserDialog.cs
- RepeatInfo.cs
- AuthenticationManager.cs
- ArrayElementGridEntry.cs
- TypeInfo.cs
- Pkcs7Recipient.cs
- ProviderBase.cs
- DataKey.cs
- EnumBuilder.cs
- DataServicePagingProviderWrapper.cs
- VirtualPathData.cs
- MissingSatelliteAssemblyException.cs
- InlinedAggregationOperator.cs
- Int16Storage.cs
- ObjectPropertyMapping.cs
- MiniLockedBorderGlyph.cs
- TypeElement.cs
- jithelpers.cs
- CodeSubDirectory.cs
- ValidationResult.cs
- HotSpot.cs
- BoundColumn.cs
- ExternalException.cs
- WebHttpSecurityElement.cs
- VisualStates.cs
- DeflateEmulationStream.cs
- SmtpDateTime.cs