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
- ReceiveErrorHandling.cs
- SmiEventSink_DeferedProcessing.cs
- DataContractSerializerFaultFormatter.cs
- WindowsStatic.cs
- TransactionFilter.cs
- ColorContext.cs
- ObjectListCommandsPage.cs
- FormClosingEvent.cs
- XmlNullResolver.cs
- SchemaImporter.cs
- CompensationDesigner.cs
- XamlTemplateSerializer.cs
- ISAPIRuntime.cs
- CurrencyWrapper.cs
- DataGridPageChangedEventArgs.cs
- DetailsView.cs
- LambdaCompiler.Unary.cs
- TextTreeUndo.cs
- MaskedTextBox.cs
- OptimisticConcurrencyException.cs
- _HeaderInfo.cs
- X509Certificate.cs
- DeflateStream.cs
- CultureTable.cs
- DeliveryStrategy.cs
- IPPacketInformation.cs
- ErrorHandlingReceiver.cs
- Win32Native.cs
- GradientStopCollection.cs
- ContainerActivationHelper.cs
- DetailsViewInsertEventArgs.cs
- PolyQuadraticBezierSegmentFigureLogic.cs
- SchemaObjectWriter.cs
- TypeInitializationException.cs
- ManagedIStream.cs
- ManagementOperationWatcher.cs
- TemplateControlParser.cs
- WeakRefEnumerator.cs
- BlobPersonalizationState.cs
- GenericPrincipal.cs
- _FtpControlStream.cs
- ListMarkerSourceInfo.cs
- DataGridRowsPresenter.cs
- EventHandlersStore.cs
- EmbeddedObject.cs
- recordstatescratchpad.cs
- GenericEnumerator.cs
- MemberDescriptor.cs
- OracleCommandBuilder.cs
- BinarySerializer.cs
- MailDefinition.cs
- ChameleonKey.cs
- WebPartConnectionsConfigureVerb.cs
- EntityTypeEmitter.cs
- XPathNodeHelper.cs
- WindowInteractionStateTracker.cs
- XmlCharacterData.cs
- safelinkcollection.cs
- DataGridRowHeader.cs
- XmlSchemaComplexType.cs
- SessionStateModule.cs
- WebProxyScriptElement.cs
- InvokeProviderWrapper.cs
- LoadedOrUnloadedOperation.cs
- CompilationUtil.cs
- WebPartDescription.cs
- ToolboxBitmapAttribute.cs
- MLangCodePageEncoding.cs
- SHA512Managed.cs
- HttpProfileGroupBase.cs
- SyndicationFeedFormatter.cs
- WrappedIUnknown.cs
- NavigationProgressEventArgs.cs
- GenericAuthenticationEventArgs.cs
- GenericFlowSwitchHelper.cs
- RuleAttributes.cs
- ReturnEventArgs.cs
- SqlDependency.cs
- ServiceErrorHandler.cs
- FixedPosition.cs
- ImageProxy.cs
- DateTimeConverter.cs
- EntityDesignerUtils.cs
- ExpressionBuilderCollection.cs
- IODescriptionAttribute.cs
- MonikerSyntaxException.cs
- DataBoundControl.cs
- HtmlElement.cs
- TypeSystem.cs
- PolyBezierSegment.cs
- ViewStateModeByIdAttribute.cs
- HttpListenerContext.cs
- NamespaceDecl.cs
- GB18030Encoding.cs
- KoreanLunisolarCalendar.cs
- PersonalizationState.cs
- QueueNameHelper.cs
- IndependentAnimationStorage.cs
- XamlClipboardData.cs
- XNodeValidator.cs