Code:
/ DotNET / DotNET / 8.0 / untmp / whidbey / REDBITS / 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); } }
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- HttpException.cs
- GridViewColumnCollection.cs
- SourceFilter.cs
- ResourceDictionaryCollection.cs
- WebRequest.cs
- DataGridHeaderBorder.cs
- ToolStripPanelDesigner.cs
- KeySplineConverter.cs
- ProfileEventArgs.cs
- BitmapEffectGroup.cs
- TreeNodeBindingCollection.cs
- StorageMappingFragment.cs
- WebPartConnection.cs
- DynamicDataExtensions.cs
- HttpNamespaceReservationInstallComponent.cs
- XsdBuildProvider.cs
- DataGridViewSelectedCellCollection.cs
- translator.cs
- WindowsGraphicsCacheManager.cs
- Error.cs
- safesecurityhelperavalon.cs
- Brush.cs
- httpstaticobjectscollection.cs
- XmlSchemaObjectTable.cs
- DataViewListener.cs
- WebPartConnectionsDisconnectVerb.cs
- StaticFileHandler.cs
- UrlPropertyAttribute.cs
- BooleanExpr.cs
- StreamInfo.cs
- QfeChecker.cs
- LayoutTableCell.cs
- DBCSCodePageEncoding.cs
- SpellerInterop.cs
- ApplicationGesture.cs
- DesigntimeLicenseContext.cs
- BlurBitmapEffect.cs
- mansign.cs
- TableColumn.cs
- SQLGuidStorage.cs
- AspNetPartialTrustHelpers.cs
- SystemThemeKey.cs
- HttpCachePolicyElement.cs
- Action.cs
- XmlSchemaProviderAttribute.cs
- InstanceKeyCompleteException.cs
- AlphabeticalEnumConverter.cs
- FactoryGenerator.cs
- ActivityScheduledRecord.cs
- SByte.cs
- QilLoop.cs
- NumericUpDownAcceleration.cs
- Schedule.cs
- TextEvent.cs
- FilePrompt.cs
- WebServiceData.cs
- XmlnsDefinitionAttribute.cs
- DBConnection.cs
- WmlValidatorAdapter.cs
- CollectionTypeElement.cs
- WorkflowInstanceRecord.cs
- DoubleStorage.cs
- Int32RectConverter.cs
- WebPartEventArgs.cs
- FileDialog_Vista_Interop.cs
- ToolboxItemWrapper.cs
- XXXOnTypeBuilderInstantiation.cs
- CqlIdentifiers.cs
- DrawItemEvent.cs
- ConversionContext.cs
- EmptyStringExpandableObjectConverter.cs
- EventsTab.cs
- KnownIds.cs
- OverflowException.cs
- IndexOutOfRangeException.cs
- ResourceDisplayNameAttribute.cs
- EmptyStringExpandableObjectConverter.cs
- ExtendedPropertyCollection.cs
- WebPartHelpVerb.cs
- EventHandlers.cs
- HostingEnvironment.cs
- AssemblyBuilder.cs
- SimpleBitVector32.cs
- TextDecorationLocationValidation.cs
- SurrogateEncoder.cs
- DataTemplateSelector.cs
- CriticalHandle.cs
- TemplateColumn.cs
- NameValueSectionHandler.cs
- BaseAutoFormat.cs
- ObjectTypeMapping.cs
- Select.cs
- SiteMapHierarchicalDataSourceView.cs
- BaseServiceProvider.cs
- ChildTable.cs
- NavigationExpr.cs
- ModelPropertyCollectionImpl.cs
- TransformDescriptor.cs
- TextTreeInsertUndoUnit.cs
- FileLogRecord.cs