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
- TextTreeInsertElementUndoUnit.cs
- CAGDesigner.cs
- odbcmetadatacolumnnames.cs
- FontStretchConverter.cs
- X509Chain.cs
- CodeSnippetTypeMember.cs
- DataGridViewCellCancelEventArgs.cs
- PrintingPermissionAttribute.cs
- LingerOption.cs
- PathGradientBrush.cs
- HwndPanningFeedback.cs
- messageonlyhwndwrapper.cs
- SystemEvents.cs
- AdapterUtil.cs
- BufferedWebEventProvider.cs
- VerbConverter.cs
- DbProviderManifest.cs
- ObjectQuery.cs
- DataMemberConverter.cs
- CodeSubDirectoriesCollection.cs
- WindowsStreamSecurityUpgradeProvider.cs
- formatstringdialog.cs
- MsmqOutputChannel.cs
- ProfileGroupSettings.cs
- DoubleMinMaxAggregationOperator.cs
- WindowsTab.cs
- ClockController.cs
- ResourceDescriptionAttribute.cs
- FilteredSchemaElementLookUpTable.cs
- ProcessModuleCollection.cs
- IntegerValidatorAttribute.cs
- ContextQuery.cs
- AvTraceDetails.cs
- GeneralTransform3DCollection.cs
- Tablet.cs
- GuidTagList.cs
- TabControlDesigner.cs
- DescriptionAttribute.cs
- RegistrationServices.cs
- InternalControlCollection.cs
- Int32Animation.cs
- DbConnectionClosed.cs
- ListViewDesigner.cs
- WebPartCollection.cs
- HttpVersion.cs
- CellRelation.cs
- COM2Properties.cs
- InternalSafeNativeMethods.cs
- SqlBuilder.cs
- DependentTransaction.cs
- InternalDuplexChannelListener.cs
- Terminate.cs
- TypedReference.cs
- MenuItemCollection.cs
- ValueOfAction.cs
- ConfigPathUtility.cs
- ServiceInstallComponent.cs
- WinFormsSecurity.cs
- SqlTriggerAttribute.cs
- ViewValidator.cs
- RepeaterCommandEventArgs.cs
- OutputCacheModule.cs
- ReadOnlyHierarchicalDataSourceView.cs
- Stack.cs
- GregorianCalendarHelper.cs
- XPathNodeList.cs
- OracleTransaction.cs
- RepeatBehavior.cs
- WhitespaceRuleLookup.cs
- AdornerLayer.cs
- InfoCardService.cs
- CommandEventArgs.cs
- RestHandlerFactory.cs
- StoreContentChangedEventArgs.cs
- WebPartRestoreVerb.cs
- FileDialog_Vista_Interop.cs
- SmtpMail.cs
- ChannelManager.cs
- ListMarkerSourceInfo.cs
- ProvidersHelper.cs
- ValueQuery.cs
- SliderAutomationPeer.cs
- WSIdentityFaultException.cs
- DelegateSerializationHolder.cs
- ProviderSettingsCollection.cs
- PersistenceIOParticipant.cs
- DependencyPropertyValueSerializer.cs
- Simplifier.cs
- PropertyItemInternal.cs
- IdentityNotMappedException.cs
- figurelength.cs
- BounceEase.cs
- FormattedTextSymbols.cs
- AdornerPresentationContext.cs
- Debug.cs
- EntityDesignerDataSourceView.cs
- CodeAccessPermission.cs
- SqlBuffer.cs
- PropertyConverter.cs
- BaseTemplatedMobileComponentEditor.cs