Code:
/ FX-1434 / FX-1434 / 1.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
- FlowSwitch.cs
- MenuCommand.cs
- SessionStateItemCollection.cs
- PeerNameResolver.cs
- StorageFunctionMapping.cs
- XamlPoint3DCollectionSerializer.cs
- figurelengthconverter.cs
- LabelAutomationPeer.cs
- ParallelForEach.cs
- PrePrepareMethodAttribute.cs
- UserPreferenceChangedEventArgs.cs
- WebMessageEncoderFactory.cs
- GenericWebPart.cs
- DateTimeOffset.cs
- BufferedWebEventProvider.cs
- HMACSHA384.cs
- DesignTimeParseData.cs
- XsltOutput.cs
- RectangleHotSpot.cs
- FontDialog.cs
- ContextStack.cs
- Helper.cs
- CompositeFontParser.cs
- XmlQualifiedName.cs
- NativeMethodsOther.cs
- PositiveTimeSpanValidator.cs
- MULTI_QI.cs
- PingOptions.cs
- DrawItemEvent.cs
- IdnMapping.cs
- SqlGatherProducedAliases.cs
- BindUriHelper.cs
- activationcontext.cs
- UIElement.cs
- VirtualDirectoryMapping.cs
- EdgeProfileValidation.cs
- FontCacheLogic.cs
- RIPEMD160Managed.cs
- KeyEvent.cs
- localization.cs
- Maps.cs
- ActiveXContainer.cs
- ControlUtil.cs
- FrameworkElementFactory.cs
- DocumentNUp.cs
- MarkupExtensionSerializer.cs
- CfgParser.cs
- FrameDimension.cs
- CompositeFontInfo.cs
- DelegatingTypeDescriptionProvider.cs
- TransformPattern.cs
- DesignerPerfEventProvider.cs
- TypeSystemHelpers.cs
- URI.cs
- DashStyles.cs
- MostlySingletonList.cs
- XAMLParseException.cs
- SmtpReplyReader.cs
- StreamReader.cs
- SimpleTypeResolver.cs
- BinaryObjectWriter.cs
- Size3DValueSerializer.cs
- SqlServer2KCompatibilityCheck.cs
- CallbackHandler.cs
- StaticFileHandler.cs
- GridViewSortEventArgs.cs
- UnsafeNativeMethods.cs
- TemplateControlBuildProvider.cs
- LineGeometry.cs
- EmptyEnumerator.cs
- StreamAsIStream.cs
- TextEditorLists.cs
- ComboBoxRenderer.cs
- TextSelectionHelper.cs
- ImageUrlEditor.cs
- NullToBooleanConverter.cs
- OverlappedAsyncResult.cs
- Message.cs
- MatrixTransform3D.cs
- SessionStateContainer.cs
- StackBuilderSink.cs
- DependencyObjectType.cs
- ThreadPool.cs
- WebHeaderCollection.cs
- DataGridViewRowErrorTextNeededEventArgs.cs
- LinkGrep.cs
- CachingHintValidation.cs
- TextAction.cs
- Vector3DAnimation.cs
- ControlPaint.cs
- ListViewItemEventArgs.cs
- SequentialActivityDesigner.cs
- Control.cs
- HuffCodec.cs
- WorkflowRuntimeServiceElement.cs
- JavascriptCallbackBehaviorAttribute.cs
- ImageCodecInfoPrivate.cs
- DropDownList.cs
- EventLogPermissionAttribute.cs
- SingleObjectCollection.cs